示例#1
0
 def dataReceived(self, data):
     print "Mosquito network ready ;)",data
     if (data.startswith("GET") and "evangelion" in data) or "evangelion" in data:
         print "EVAngelion swarm mode!\n"
         self.sendHTTP("Start Swarm Attack\n")
         #self.transport.loseConnection()
         app = xsser()
         app.set_reporter(self.factory)
         self.factory.xsser = app
         data = data.split('\n')[0]
         options = data.replace('GET ', '').split()[1:]
         print 'OPTIONS',options
         if len(options) > 1:
             reactor.callInThread(self.factory.xsser.run, options)
         else:
             reactor.callInThread(self.factory.xsser.run)
     elif "evangelion" in data:
         self.sendHTTP("Start Swarm Attack\n")
         reactor.callInThread(self.factory.xsser.run)
     elif data.startswith("GET /success"):
         print "SUCCESS!!", data.split('HTTP')[0].split('/')[-1]
         self.factory.xsser.final_attack_callback(data.split('HTTP')[0].split('/')[-1].strip())
         self.sendHTTP("thx for use XSSer (http://xsser.sf.net) !!\n")
         self.transport.loseConnection()
         #self.factory.post('SUCCESS XDD LOL')
     elif data.startswith("GET"):
         self.sendHTTP("XSSer Web Interface <a href='evangelion'>Try it!</a>\n")
         #self.transport.loseConnection()
     elif data.startswith("close"):
         reactor.stop()
     else:
         self.transport.write("1")
示例#2
0
 def dataReceived(self, data):
     print "Mosquito network ready ;)", data
     if (data.startswith("GET")
             and "evangelion" in data) or "evangelion" in data:
         print "EVAngelion swarm mode!\n"
         self.sendHTTP("Start Swarm Attack\n")
         #self.transport.loseConnection()
         app = xsser()
         app.set_reporter(self.factory)
         self.factory.xsser = app
         data = data.split('\n')[0]
         options = data.replace('GET ', '').split()[1:]
         print 'OPTIONS', options
         if len(options) > 1:
             reactor.callInThread(self.factory.xsser.run, options)
         else:
             reactor.callInThread(self.factory.xsser.run)
     elif "evangelion" in data:
         self.sendHTTP("Start Swarm Attack\n")
         reactor.callInThread(self.factory.xsser.run)
     elif data.startswith("GET /success"):
         print "SUCCESS!!", data.split('HTTP')[0].split('/')[-1]
         self.factory.xsser.final_attack_callback(
             data.split('HTTP')[0].split('/')[-1].strip())
         self.sendHTTP("thx for use XSSer (http://xsser.sf.net) !!\n")
         self.transport.loseConnection()
         #self.factory.post('SUCCESS XDD LOL')
     elif data.startswith("GET"):
         self.sendHTTP(
             "XSSer Web Interface <a href='evangelion'>Try it!</a>\n")
         #self.transport.loseConnection()
     elif data.startswith("close"):
         reactor.stop()
     else:
         self.transport.write("1")
示例#3
0
xsser is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation version 3 of the License.

xsser is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
details.

You should have received a copy of the GNU General Public License along
with xsser; if not, write to the Free Software Foundation, Inc., 51
Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
"""
from XSSer.main import xsser

class NullOutput(object):
    def write(self, text):
        pass
    def flush(self):
        pass

if __name__ == "__main__":
    app = xsser()
    options = app.create_options()
    if options:
        app.set_options(options)
        app.run()
    app.land(True)


示例#4
0
the terms of the GNU General Public License as published by the Free
Software Foundation version 3 of the License.

xsser is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
details.

You should have received a copy of the GNU General Public License along
with xsser; if not, write to the Free Software Foundation, Inc., 51
Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
"""
from XSSer.main import xsser


class NullOutput(object):
    def write(self, text):
        pass

    def flush(self):
        pass


if __name__ == "__main__":
    app = xsser()
    options = app.create_options()
    if options:
        app.set_options(options)
        app.run()
    app.land(True)