Skip to content

Commit

Permalink
Add marker index to command output.
Browse files Browse the repository at this point in the history
  • Loading branch information
unix-ninja committed Feb 6, 2024
1 parent 428d7c0 commit e7884fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
long_description = fh.read()

setup(name='shellfire',
version='0.11.b',
version='0.12',
description=(
'shellfire is an exploitation shell focusing on exploiting command '
'injection vulnerabilities, eg., LFI, RFI, SSTI, etc.'
Expand Down
3 changes: 2 additions & 1 deletion shellfire/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def cmd_config(cmd):
if cmd[1] == "save":
## make sure our directory exists
if not os.path.isdir(config_path):
os.mkdir(config_path)
os.makedirs(config_path)
## save our config to json
with open(name, 'w') as my_config:
my_config.write(cfg.dump())
Expand Down Expand Up @@ -439,6 +439,7 @@ def cmd_marker(cmd):
## this will determine boundaries to split and clean output
if len(cmd) == 1:
sys.stderr.write("[*] Payload marker: %s\n" % (cfg.marker))
sys.stderr.write("[*] Marker index: %d\n" % (cfg.marker_idx))
return
## let's remove ".marker" from our cmd
cmd.pop(0)
Expand Down

0 comments on commit e7884fc

Please sign in to comment.