Skip to content

Commit

Permalink
v0.2.9: Warn user when payload will not print command execution result.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marven11 committed May 15, 2023
1 parent 936862e commit f0d1cec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.8
0.2.9
6 changes: 5 additions & 1 deletion fenjing/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@


def cmd_exec(cmd, cracker: FormCracker, field: str, full_payload_gen: FullPayloadGen):
payload = full_payload_gen.generate(OS_POPEN_READ, cmd)
payload, will_print = full_payload_gen.generate(OS_POPEN_READ, cmd)
logger.info(f"Submit payload {colored('blue', payload)}")
if not will_print:
logger.warning("Payload generator says that this payload {wont_print} command execution result.".format(
wont_print = colored('red', "won't print")
))
r = cracker.submit(
{field: payload})
assert r is not None
Expand Down

0 comments on commit f0d1cec

Please sign in to comment.