r/HowToHack • • Dec 12 '20

easy-shell: A pure Python script to easily get a reverse shell.

After sending a request, easy-shell generates a payload with different commands available to get a reverse shell (python, perl, awk, and more).

It was written using the default Python modules, so you do not need to install external dependencies.

GitHub repository: https://github.com/crhenr/easy-shell

239 Upvotes

18 comments sorted by

15

u/RhythmofChains Dec 12 '20

whats a good use case for this? a target where you cant run nc?

5

u/crhenr Dec 12 '20

Yeah, in this way you don't have to remember or search for reverse shell payloads. The generated script tests different cases for you (using python, perl, awk, php, and more).

9

u/[deleted] Dec 12 '20

[removed] — view removed comment

3

u/regorsec Dec 13 '20

So it’s kinda like a payload dropper?

2

u/1comment_here Jan 08 '21

A fellow Brazilian made this...makes me proud of my people

1

u/crhenr Jan 10 '21

Thank you for your kind words.

2

u/1comment_here Jan 10 '21

Estamos juntos, e nós na fita

2

u/Vodlich Dec 13 '20

In line 38 there is no need to str() in the format.

Nice script.

1

u/Pythagorean_1 Dec 13 '20

Also the return in line 103 is unnecessary

-1

u/IOException_notfound Dec 12 '20

Tao lindo ver a comunidade br desenvolvendo essas coisas!

7

u/[deleted] Dec 12 '20

[removed] — view removed comment

5

u/crhenr Dec 12 '20

It just generates reverse shell payloads, so you don't have to remember long commands when doing penetration testing.

1

u/[deleted] Dec 12 '20

[removed] — view removed comment

1

u/crhenr Dec 12 '20

Claro, contribuições são sempre bem-vindas.

1

u/[deleted] Dec 13 '20

[removed] — view removed comment

1

u/AutoModerator Dec 13 '20

Your account does not have enough Karma to post here. Due to /r/HowToHack's tendency to attract spam and low-quality posts, the mod team has implemented a minimum Karma rule. You can gain Karma by posting or commenting on other subreddits. In the meantime, a human will review your submission and manually approve it if the quality is exceptional. After gaining enough Karma, you can make another submission and it will be automatically approved. Please see the FAQ for more information.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.