Пример #1
0
 def __init__(self, command, uri, postData, actAs, headers, client):
     self.command = command
     self.uri = uri
     self.postData = postData
     self.headers = headers
     self.client = client
     self.PersistentData = PersistentData.getInstance()
     self.isCompressed = False
     self.contentLength = None
     self.shutdownComplete = False
     self.actAs = actAs
Пример #2
0
def main(argv):
    (targetsFile, port, burstDuration, sleepDuration, runWhileInFocus, nibble, bold) = parseOptions(argv)

    try:
        targets_fd = open(targetsFile)
    except:
        print sys.exc_info()[0]
        usage()
        sys.exit()

    try:
        if sleepDuration < 0 or burstDuration < 0:
            usage()
            sys.exit()  
    except:
        usage()
        sys.exit()
        
    obfuscateTargets = "true"
    
    if runWhileInFocus == "true":
        nibble = "false"
        
	
    if bold:
        runWhileInFocus = "true"
        nibble = "false"
        sleepDuration = 0
        burstDuration = 100
        obfuscateTargets = "false"
		
    p = PersistentData.getInstance()
    p.setLoginActions(targets_fd)
    
    p.setMasterIframeVars(sleepDuration*1000, burstDuration*1000, targets_fd, runWhileInFocus, nibble, obfuscateTargets)
    
    LupinFactory              = http.HTTPFactory(timeout=10)
    LupinFactory.protocol     = LupinProxy

    reactor.listenTCP(port, LupinFactory)           
    print "\nLupin by Raul Gonzalez running...\n"
	
    if bold:
        print "Stealth Measures Disabled! See Readme for more details.\n"
    reactor.run()