Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DanMcInerney/xsscrapy
/ functions
Functions
72 in github.com/DanMcInerney/xsscrapy
⨍
Functions
72
◇
Types & classes
7
↓ 6 callers
Method
make_payload
Make the payload with a unique delim
xsscrapy/spiders/xss_spider.py:440
↓ 3 callers
Method
get_elem_position
Iterate through all elements in doc and match them up against the element found during xpathing
xsscrapy/pipelines.py:871
↓ 3 callers
Method
make_item
Create the vuln item
xsscrapy/pipelines.py:779
↓ 3 callers
Method
opposite_quote
Return the opposite quote of the one give, single for double or double for single
xsscrapy/pipelines.py:583
↓ 3 callers
Method
write_to_file
(self, item, spider)
xsscrapy/pipelines.py:998
↓ 2 callers
Method
event_attributes
HTML tag attributes that allow javascript TAKEN OUT AT THE MOMENT
xsscrapy/pipelines.py:977
↓ 2 callers
Function
fill_login_form
(url, body, username, password)
xsscrapy/loginform.py:72
↓ 2 callers
Method
get_quote_context
Goes through char by char to determine if double or single quotes are open or not: True/None
xsscrapy/pipelines.py:545
↓ 2 callers
Method
opposite
Returns the obj as either True or None
xsscrapy/pipelines.py:575
↓ 2 callers
Method
url_item_filtering
Make sure we're not just repeating the same URL XSS over and over
xsscrapy/pipelines.py:948
↓ 2 callers
Method
url_processor
Get the url domain, protocol, and netloc using urlparse
xsscrapy/spiders/xss_spider.py:538
↓ 1 callers
Function
_pick_fields
Return the most likely field names for username and password
xsscrapy/loginform.py:45
↓ 1 callers
Function
_pick_form
Return the form most likely to be a login form
xsscrapy/loginform.py:40
↓ 1 callers
Method
accurate_attr
lxml cannot determine the order of attrs which is important if we're using regex to find the location of the inj so this func finds t
xsscrapy/pipelines.py:742
↓ 1 callers
Method
attr_breakout
(self, tag, attr, attr_val, delim, line)
xsscrapy/pipelines.py:401
↓ 1 callers
Method
change_params
Returns a list of complete parameters, each with 1 parameter changed to an XSS vector
xsscrapy/spiders/xss_spider.py:501
↓ 1 callers
Method
combine_regex_lxml
Combine lxml injection data with the 2 regex injection search data
xsscrapy/pipelines.py:635
↓ 1 callers
Method
decomment_js
Remove commented JS lines which screw with quote detection
xsscrapy/pipelines.py:314
↓ 1 callers
Method
getURLparams
Parse out the URL parameters
xsscrapy/spiders/xss_spider.py:493
↓ 1 callers
Function
get_args
()
xsscrapy.py:13
↓ 1 callers
Method
get_attr_quote
Return the first quote in the string which should always be the html quote if this is called on a string of html with an attr
xsscrapy/pipelines.py:382
↓ 1 callers
Method
get_breakout_chars
Returns either None if no breakout chars were found or a list of sets of potential breakout characters
xsscrapy/pipelines.py:270
↓ 1 callers
Method
get_filename
(self, url)
xsscrapy/pipelines.py:22
↓ 1 callers
Method
get_lxml_matches
(self, full_match, body, resp_url, delim)
xsscrapy/pipelines.py:592
↓ 1 callers
Method
get_single_payload_queries
Make a list of lists of tuples where each secondary list has 1 payloaded param and the rest are original value
xsscrapy/spiders/xss_spider.py:401
↓ 1 callers
Method
get_unfiltered_chars
Pull out just the unfiltered chars from the reflected chars payload = delim+fuzz+delim+;9
xsscrapy/pipelines.py:707
↓ 1 callers
Method
get_user_agent
(self, header, payload)
xsscrapy/spiders/xss_spider.py:597
↓ 1 callers
Method
html_parser
(self, body, resp_url)
xsscrapy/pipelines.py:600
↓ 1 callers
Function
main
()
xsscrapy.py:26
↓ 1 callers
Function
main
()
xsscrapy/loginform.py:82
↓ 1 callers
Method
make_URLs
Create the URL parameter payloaded URLs
xsscrapy/spiders/xss_spider.py:350
↓ 1 callers
Method
make_cookie_reqs
Generate payloaded cookie header requests
xsscrapy/spiders/xss_spider.py:329
↓ 1 callers
Method
make_form_reqs
Payload each form input in each input's own request
xsscrapy/spiders/xss_spider.py:271
↓ 1 callers
Method
make_header_reqs
Generate header requests
xsscrapy/spiders/xss_spider.py:575
↓ 1 callers
Method
make_iframe_reqs
Grab the <iframe src=...> attribute and add those URLs to the queue should they be within the start_url domain
xsscrapy/spiders/xss_spider.py:238
↓ 1 callers
Method
make_url_reqs
Make the URL requests
xsscrapy/spiders/xss_spider.py:558
↓ 1 callers
Method
parse_attr_xpath
Find all tags with attributes that contain the subbed str
xsscrapy/pipelines.py:881
↓ 1 callers
Method
parse_comm_xpath
Parse the xpath comment search findings
xsscrapy/pipelines.py:898
↓ 1 callers
Method
parse_resp
The main response parsing function, called on every response from a new URL Checks for XSS in headers and url
xsscrapy/spiders/xss_spider.py:159
↓ 1 callers
Method
parse_text_xpath
Creates injection points for the xpath that finds the payload in any html enclosed text
xsscrapy/pipelines.py:914
↓ 1 callers
Method
payload_end_of_url
Payload the end of the URL to catch some DOM(?) and other reflected XSSes
xsscrapy/spiders/xss_spider.py:449
↓ 1 callers
Method
payload_url_path
Payload the URL path like: http://example.com/page1.php?x=1&y=2 --> http://example.com/page1.php/FUZZ/?x=1&y=2
xsscrapy/spiders/xss_spider.py:381
↓ 1 callers
Method
payloaded_lines
(self, body, payload)
xsscrapy/pipelines.py:772
↓ 1 callers
Method
sqli_check
Do a quick lookup in the response body for SQL errors. Both w3af's and DSSS.py's methods are in here but sectoolsmarket.com shows DSSS as hav
xsscrapy/pipelines.py:125
↓ 1 callers
Function
submit_value
Returns the value for the submit input, if any
xsscrapy/loginform.py:63
↓ 1 callers
Method
tag_breakout
(self, tag, line)
xsscrapy/pipelines.py:321
↓ 1 callers
Method
unclaimedURL_check
(self, body)
xsscrapy/pipelines.py:217
↓ 1 callers
Method
url_valid
(self, url, orig_url)
xsscrapy/spiders/xss_spider.py:224
↓ 1 callers
Method
xpath_inj_points
Searches lxml doc for any text, attributes, or comments that reflect the subbed text
xsscrapy/pipelines.py:802
↓ 1 callers
Method
xss_logic
XSS logic. Returns None if vulnerability not found The breakout_chars var is a list(set()). This ensure we can test for breakout giv
xsscrapy/pipelines.py:231
Method
__init__
(self)
xsscrapy/pipelines.py:19
Method
__init__
(self, path=None)
xsscrapy/bloomfilters.py:9
Method
__init__
(self, *args, **kwargs)
xsscrapy/spiders/xss_spider.py:37
Method
__str__
Prevent the item from being printed to output during debugging
xsscrapy/items.py:21
Method
__str__
Prevent the item from being printed to output during debugging
xsscrapy/items.py:28
Function
_form_score
(form)
xsscrapy/loginform.py:11
Method
close
(self, reason)
xsscrapy/bloomfilters.py:23
Method
confirm_login
Check that the username showed up in the response page
xsscrapy/spiders/xss_spider.py:132
Method
from_settings
(cls, settings)
xsscrapy/bloomfilters.py:14
Method
get_reflected_chars
Check for the special chars and append them to a master list of tuples, one tuple per injection point Always returns a string
xsscrapy/pipelines.py:940
Method
login
Fill out the login form and return the request
xsscrapy/spiders/xss_spider.py:117
Method
open_spider
(self, spider)
xsscrapy/pipelines.py:30
Method
parse_start_url
Creates the XSS tester requests for the start URL as well as the request for robots.txt
xsscrapy/spiders/xss_spider.py:78
Method
payload_url_vars
Payload the URL variables
xsscrapy/spiders/xss_spider.py:461
Method
process_item
(self, item, spider)
xsscrapy/pipelines.py:33
Method
process_request
(self, request, spider)
xsscrapy/middlewares.py:22
Method
process_request
(self, request, spider)
xsscrapy/middlewares.py:36
Method
request_seen
(self, request)
xsscrapy/bloomfilters.py:17
Method
robot_parser
Parse the robots.txt file and create Requests for the disallowed domains
xsscrapy/spiders/xss_spider.py:142
Method
start_requests
If user and pw args are given, pass the first response to the login handler otherwise pass it to the normal callback function
xsscrapy/spiders/xss_spider.py:93
Method
unescape_payload
Unescape the various payload encodings (html and url encodings)
xsscrapy/pipelines.py:929
Method
xss_chars_finder
Find which chars, if any, are filtered
xsscrapy/spiders/xss_spider.py:603