Yanick Fratantonio
65861336b0
Merge pull request #12 from ewilded/master
...
Prefixing regular expression strings with "r" to get rid of SyntaxWarnings.
2025-06-30 08:10:38 +02:00
Julian Horoszkiewicz
52663a7b21
Update shellnoob.py
...
In newer versions of Python (e.g. 3.13.3) the lack of "r'" prefix before strings carrying regular expressions with character groups such as \s+ causes warnings about Python's attempts to interpret them as escape sequences, leading to warnings like this:
/home/kali/shellnoob.py:605: SyntaxWarning: invalid escape sequence '\s'
m = re.search('.text\s+\w+\s+([0-9a-f]+)\s+([0-9a-f]+)\s+([0-9a-f]+)', line)
/home/kali/shellnoob.py:614: SyntaxWarning: invalid escape sequence '\s'
m = re.search('.text\s+\w+\s+([0-9a-f]+)\s+([0-9a-f]+)', line)
/home/kali/shellnoob.py:620: SyntaxWarning: invalid escape sequence '\s'
m = re.search('\s+([0-9a-f]+)\s+[0-9a-f]+', line)
/home/kali/shellnoob.py:641: SyntaxWarning: invalid escape sequence '\s'
m = re.search('([0-9a-f]+):\s+[0-9a-f ]+\s+call.*fork', line)
/home/kali/shellnoob.py:1029: SyntaxWarning: invalid escape sequence '\s'
m = re.search('[0-9a-f]+:\s+([0-9a-f ]+)\t(.*)$', line)
Providing a fixed version with all affected re.search() parameters properly prefixed.
2025-06-25 18:55:45 +02:00
Yanick Fratantonio
72cf49804d
Merge pull request #10 from hpolloni/master
...
Fix exceptions when outputting to sys.stdout
2022-03-15 19:56:41 +01:00
BuildTools
31110c2de7
Fix exceptions while outputting to sys.stdout
2022-02-20 11:53:30 -08:00
Yanick Fratantonio
dd7039019e
Merge pull request #9 from reyalpmi/fix-fbsd
...
Fix FreeBSD objdump/ld options not found issue
2021-10-30 19:15:52 +02:00
im3th4n
c59aeb48d9
Add a new line.
2021-07-04 09:48:47 +08:00
im3th4n
b7950f47a8
Fix Freebsd objdump/ld options not found issue.
2021-07-04 09:43:05 +08:00
Yanick Fratantonio
c923d5e15c
Merge pull request #8 from tahti/master
...
Fixing c template for 64 bit
2017-04-24 17:21:14 -07:00
Piotr Kordy
ed5f73a975
Fixing c template for 64 bit
2017-04-25 01:09:53 +02:00
Yanick Fratantonio
91a4399d8d
Merge pull request #7 from ret2libc/mmap_consts
...
shellnoob: add mmap headers to resolve constants
2016-05-04 08:50:24 -07:00
Riccardo Schirone
0ae1e7dd82
shellnoob: add mmap headers to resolve constants
2016-05-04 14:30:15 +00:00
Yanick Fratantonio
ca2d7477d7
Merge pull request #4 from ManasGeorge/master
...
Fixed --to-gdb to handle readline, amongst other problems
2016-02-03 11:15:29 -08:00
Manas George
899835d83a
Fixed --to-gdb to handle readline, amongst other problems
2016-02-03 14:02:03 -05:00
Yanick Fratantonio
a64e9ab273
updated the README
v2.1
2014-01-21 11:25:16 -08:00
Yanick Fratantonio
951d499171
cleaning up the README
2014-01-21 10:53:49 -08:00
anthraxx
53c03da891
using explicit bytes data in --fork-nopper for python3
...
* file.write() in do_exe_patch() expects buffer interface
in python3: http://docs.python.org/3/tutorial/inputoutput.html
2013-10-21 13:46:21 +02:00
anthraxx
c717d3dff7
only print --fork-nopper objdump if verbose >= 1
2013-10-21 13:34:49 +02:00
anthraxx
886876cb57
handle shellstorm shellcode fetching errors
...
* using urllib2 for python2 that raises HTTPError on
failed urlopen()
http://docs.python.org/2/library/urllib2.html
* using split urllib python3 package, that also raises
HTTPError from its error submodule
http://docs.python.org/3/library/urllib.html
2013-10-18 18:02:17 +02:00
anthraxx
dbbadeee64
using binascii.unhexlify to decode file and vm patch args
...
* binascii.unhexlify is compatbile for both, python 2+3
http://docs.python.org/3/library/binascii.html
2013-10-18 02:43:33 +02:00
anthraxx
9dae7b968a
fixing shellstorm option for python3
...
* this adds urlread(url) as wrapper around urllib
to keep it compatible for python 2+3
2013-10-18 02:12:41 +02:00
anthraxx
2af6b5660f
fixing missing unlink of tmp files
2013-10-17 14:59:12 +02:00
anthraxx
716e1110c5
adding default encoding 'utf-8' to cstr and cbytes calls
2013-10-17 14:30:24 +02:00
anthraxx
88e937da91
using python3 style print in test.py
...
* this make the test.py now runnable for both, python 2+3
2013-10-17 14:23:01 +02:00
anthraxx
74f052a49a
using explicit type casting required for python3
...
* using the str wrapper cstr and bytes wrapper cbytes
is required to support both, python 2+3
2013-10-17 14:21:33 +02:00
anthraxx
87a2c0aab6
fixing test_conversion by stripping newline chars
2013-10-16 17:51:03 +02:00
anthraxx
229037353a
using sorted dict for predictable syscall order
...
* this fixes a bug in test.py if platforms.items()
returns a different order [1]
[1]: http://docs.python.org/2/library/stdtypes.html#dict.items
2013-10-16 14:55:46 +02:00
anthraxx
84c683d752
binding func raw_input to input as fallback
2013-10-16 14:35:36 +02:00
anthraxx
a150eca311
converting print to python3 style
...
* keeps compatibility to python2(>=2.6) by
importing future print_function
2013-10-15 15:29:22 +02:00
Yanick Fratantonio
1006d4a4bd
v2.0.0.0.1 is out! :) Thanks to the @ToolsWatch guys :)
v2.0.0.0.1
2013-07-31 14:46:36 -07:00
Yanick Fratantonio
aa9948e6a1
using fixed length for memory alloc
2013-07-30 00:39:38 -07:00
Yanick Fratantonio
7b5ff07753
use sizeof instead of strlen to get the shellcode size
2013-07-29 21:56:36 -07:00
Yanick Fratantonio
11af2fcfb1
hex_to_exe is now more reliable
2013-07-29 21:41:13 -07:00
Yanick Fratantonio
6338cef0d4
ShellNoob v2.0
v2.0
2013-07-29 12:00:04 -07:00
Yanick Fratantonio
655ddbd8c3
updated README
v1.0
2013-06-08 18:20:01 -07:00
Yanick Fratantonio
fef978a6fb
fixed the opcode_to_ins feature
2013-05-10 20:08:52 -07:00
Yanick Fratantonio
9710da8093
shellnoob 1.0 - first commit
2013-04-29 18:29:05 -07:00
reyammer
c638a9f153
Initial commit
2013-04-29 17:13:15 -07:00