Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix proxyFile regex to properly match an address with a -#2401

Merged
stamparm merged 1 commit intosqlmapproject:masterfrom
tomahock:master
Feb 19, 2017
Merged

Fix proxyFile regex to properly match an address with a -#2401
stamparm merged 1 commit intosqlmapproject:masterfrom
tomahock:master

Conversation

@tomahock
Copy link
Copy Markdown
Contributor

@tomahock tomahock commented Feb 17, 2017

Hi!

If you have a proxy file and have some hosts with - (and it's a valid char for a domain) the regex that matches the type_, address and port doesn't works properly.

Just added the - on the regex and every thing works fine!

$ python test.py
Testing string: foo.bar:80 fo-o.bar:80 foo-bar.foo.bar:80 foo-bar.fo-o.bar:80

Results for old regex:
http://foo.bar:80
http://o.bar:80
http://bar.foo.bar:80
http://o.bar:80


Results for new regex:
http://foo.bar:80
http://fo-o.bar:80
http://foo-bar.foo.bar:80
http://foo-bar.fo-o.bar:80

@stamparm stamparm merged commit 4d3aa16 into sqlmapproject:master Feb 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants