Skip to content

Commit 03b9a9b

Browse files
authored
Merge pull request #43 from 0xInfection/dev
Ready for a new release
2 parents 25ddab6 + c723e75 commit 03b9a9b

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

xsrfprobe/core/main.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ def Engine(): # lets begin it!
103103
# Implementing the first mode. [NO CRAWL]
104104
if not CRAWL_SITE:
105105
url = web
106-
response = Get(url).text
107106
try:
108-
verbout(O,'Trying to parse response...')
107+
response = Get(url).text
108+
verbout(O, 'Trying to parse response...')
109109
soup = BeautifulSoup(response) # Parser init
110-
except HTMLParser.HTMLParseError:
111-
verbout(R,'BeautifulSoup Error: '+url)
110+
except AttributeError:
111+
verbout(R, 'No response received, site probably down: '+url)
112112
i = 0 # Init user number
113113
if REFERER_ORIGIN_CHECKS:
114114
# Referer Based Checks if True...
@@ -302,7 +302,8 @@ def Engine(): # lets begin it!
302302
GetLogger() # The scanning has interrupted, so now we can log out all the links ;)
303303
sys.exit(1)
304304
except Exception as e:
305-
print('\n'+R+'Encountered an error. \n'+R+'Please view the error log files to view what went wrong.')
305+
print('\n'+R+'Encountered an error. \n')
306+
print(R+'Please view the error log files to view what went wrong.')
306307
verbout(R, e.__str__())
307308
ErrorLogger(url, e)
308309
GetLogger()

xsrfprobe/files/paramlist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
'auth',
4747
'hash',
4848
'secret',
49-
'timestamp',
5049
'verify',
5150
)
5251

@@ -84,6 +83,7 @@
8483
'not valid',
8584
'please check your request',
8685
'your browser did something unexpected',
86+
'csrf'
8787
'clearing your cookies',
8888
'tampered token',
8989
'null',

xsrfprobe/modules/Checkpost.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def PostBased(url, r1, r2, r3, m_action, result, genpoc, form, m_name=''):
7878
# If --malicious has been supplied
7979
if GEN_MALICIOUS:
8080
# Generates a malicious CSRF form
81-
GenMalicious(m_action, genpoc.__str__())
81+
GenMalicious(url, genpoc.__str__())
8282
else:
8383
# Generates a normal PoC
84-
GenNormalPoC(m_action, genpoc.__str__())
84+
GenNormalPoC(url, genpoc.__str__())

xsrfprobe/modules/Generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def GenNormalPoC(action, fields, method='POST', encoding_type='application/x-www
4747
# Brand tag :p ...I guess...
4848
with tag('small'):
4949
text('(o) This form was generated by ')
50-
with tag('a', href='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/0xinfection/xsrfprobe'):
50+
with tag('a', href='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/0xInfection/xsrfprobe'):
5151
text('XSRFProbe')
5252
text('.')
5353
content = BeautifulSoup(doc.getvalue(), 'html.parser')

0 commit comments

Comments
 (0)