Skip to content

Commit

Permalink
Now the reverse shell detection works as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthares101 committed Nov 13, 2021
1 parent c20bfe4 commit 9255a47
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img alt="Test status" src="https://img.shields.io/github/workflow/status/anthares101/netpwn/CI?style=for-the-badge"> <img alt="Version v1.2" src="https://img.shields.io/badge/version-v1.2-blue?style=for-the-badge"> <img alt="GPL-2.0 license" src="https://img.shields.io/github/license/anthares101/netpwn?style=for-the-badge">
<img alt="Test status" src="https://img.shields.io/github/workflow/status/anthares101/netpwn/CI?style=for-the-badge"> <img alt="Version v1.3" src="https://img.shields.io/badge/version-v1.3-blue?style=for-the-badge"> <img alt="GPL-2.0 license" src="https://img.shields.io/github/license/anthares101/netpwn?style=for-the-badge">

# Netpwn - A netcat listener alternative

Expand Down
2 changes: 1 addition & 1 deletion netpwn/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = '1.1'
VERSION = '1.3'

SHELL_STABILIZATION_METHODS = {
'python': {
Expand Down
4 changes: 2 additions & 2 deletions netpwn/services/ListenerService.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ def prepare_listener(self) -> listen:
return listener

def is_rev_shell(self, listener: listen):
data_received = listener.recvline_endswith(b'$',b'#', timeout=1)
data_received = listener.recvrepeat(timeout=1)
listener.unrecv(data_received)
# Check that we got a shell
if (data_received):
if (not b'$' in data_received and not b'Windows' in data_received):
return False
return True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='netpwn',
version='1.2',
version='1.3',
license='GPL-2.0',
description='A netcat listener alternative with automatic shell stabilization.',
author='Ángel Heredia',
Expand Down

0 comments on commit 9255a47

Please sign in to comment.