epsylon / xsser

Cross Site "Scripter" (aka XSSer) is an automatic -framework- to detect, exploit and report XSS vulnerabilities in web-based applications.
https://xsser.03c8.net
1.21k stars 240 forks source link

Support for Beautiful soup 4 #7

Closed kmskrishna closed 8 years ago

kmskrishna commented 8 years ago

With the release of Beautiful Soap 4 the import function is changed.

If you have Beautiful Soap 3 and run XSSER you will get an error like

Traceback (most recent call last):
  File "/usr/local/bin/xsser", line 24, in <module>
    from core.main import xsser
  File "/usr/local/lib/python2.7/dist-packages/xsser-1.6-py2.7.egg/core/main.py", line 35, in <module>
    from core.dork import Dorker
  File "/usr/local/lib/python2.7/dist-packages/xsser-1.6-py2.7.egg/core/dork.py", line 27, in <module>
    from BeautifulSoup import BeautifulSoup
ImportError: No module named BeautifulSoup

Most code written against Beautiful Soup 3 will work against Beautiful Soup 4 with one simple change. All you should have to do is change the package name from BeautifulSoup to bs4

kmskrishna commented 8 years ago

The changes are described in this website http://www.crummy.com/software/BeautifulSoup/bs4/doc/#porting-code-to-bs4. I am able to successfully run XSSER with out any issues.

epsylon commented 8 years ago

hey! actually I am upgrading tool to the next version. thanks for share this patch. I see that now Beautiful Soup is spelled on a different way. it will be fixed on "Total Swarm!" cheers.