Module Import alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Return SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Return Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpAdd BinOpAdd Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad orelse If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd Str BinOpMod Call NameLoad NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str BinOpAdd BinOpAdd Str NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A urlparse logging os sys random twisted.web.http Request twisted.web.http HTTPChannel twisted.web.http HTTPClient twisted.internet ssl twisted.internet defer twisted.internet reactor twisted.internet.protocol ClientFactory ServerConnectionFactory ServerConnectionFactory ServerConnection ServerConnection SSLServerConnection SSLServerConnection URLMonitor URLMonitor CookieCleaner CookieCleaner DnsCache DnsCache ClientRequest N/A Request N/A N/A  This class represents incoming client requests and is essentially where
    the magic begins.  Here we remove the client headers we dont like, and then
    respond with either favicon spoofing, session denial, or proxy through HTTP
    or SSL to the server.
     __init__ N/A N/A self channel queued reactor N/A reactor N/A N/A N/A N/A Request __init__ self channel queued N/A N/A self reactor reactor N/A N/A self urlMonitor N/A N/A URLMonitor getInstance N/A N/A self cookieCleaner N/A N/A CookieCleaner getInstance N/A N/A self dnsCache N/A N/A DnsCache getInstance N/A cleanHeaders N/A N/A self N/A N/A N/A headers N/A N/A N/A N/A self getAllHeaders copy N/A N/A accept-encoding headers N/A N/A N/A headers N/A accept-encoding N/A N/A if-modified-since headers N/A N/A N/A headers N/A if-modified-since N/A N/A cache-control headers N/A N/A N/A headers N/A cache-control N/A headers N/A getPathFromUri N/A N/A self N/A N/A N/A N/A N/A N/A N/A self uri find http:// 0 N/A N/A index N/A N/A N/A self uri find / 7 N/A N/A N/A self uri N/A index N/A N/A self uri N/A getPathToLockIcon N/A N/A self N/A N/A N/A N/A N/A N/A os path exists lock.ico N/A N/A lock.ico N/A scriptPath N/A N/A N/A os path abspath N/A N/A N/A os path dirname N/A N/A sys argv N/A 0 N/A scriptPath N/A N/A N/A os path join scriptPath ../share/sslstrip/lock.ico N/A N/A N/A N/A os path exists scriptPath N/A N/A scriptPath N/A N/A N/A logging warning N/A Client:%s Error: Could not find lock.ico N/A N/A self getClientIP N/A lock.ico N/A handleHostResolvedSuccess N/A N/A self address N/A N/A N/A N/A N/A logging debug N/A Client:%s Resolved host successfully: %s -> %s N/A N/A N/A self getClientIP N/A N/A self getHeader host address N/A host N/A N/A self getHeader host N/A headers N/A N/A self cleanHeaders N/A client N/A N/A self getClientIP N/A path N/A N/A self getPathFromUri N/A N/A N/A N/A self content seek 0 0 N/A postData N/A N/A N/A self content read N/A url N/A N/A http:// host path N/A N/A N/A N/A self dnsCache cacheResolution host address N/A N/A N/A N/A N/A self cookieCleaner isClean N/A self method client host headers N/A N/A N/A N/A logging debug N/A Client:%s Sending expired cookies... N/A N/A self getClientIP N/A N/A N/A self sendExpiredCookies host path N/A N/A N/A self cookieCleaner getExpireHeaders N/A self method client host headers path N/A N/A N/A N/A N/A self urlMonitor isSecureFavicon client path N/A N/A N/A N/A logging debug N/A Client:%s Sending spoofed favicon response... N/A N/A self getClientIP N/A N/A N/A self sendSpoofedFaviconResponse N/A N/A N/A N/A N/A self urlMonitor isSecureLink client url N/A N/A N/A N/A logging debug N/A Client:%s Sending request via SSL... N/A N/A self getClientIP N/A N/A N/A self proxyViaSSL address N/A self method path postData headers N/A N/A N/A self urlMonitor getSecurePort client url N/A N/A N/A N/A logging debug N/A Client:%s Sending request via HTTP... N/A N/A self getClientIP N/A N/A N/A self proxyViaHTTP address N/A self method path postData headers N/A handleHostResolvedError N/A N/A self error N/A N/A N/A N/A N/A logging warning N/A Client:%s Host resolution error:  N/A N/A str error N/A N/A self getClientIP N/A N/A N/A self finish N/A resolveHost N/A N/A self host N/A N/A N/A address N/A N/A N/A self dnsCache getCachedAddress host N/A N/A address None N/A N/A N/A N/A logging debug N/A Client:%s Host cached. N/A N/A self getClientIP N/A N/A N/A defer succeed address N/A N/A N/A N/A logging debug N/A Client:%s Host not cached. N/A N/A self getClientIP N/A N/A N/A reactor resolve host N/A process N/A N/A self N/A N/A N/A N/A N/A logging debug N/A Client:%s Resolving host: %s N/A N/A N/A self getClientIP N/A N/A self getHeader host N/A host N/A N/A self getHeader host N/A deferred N/A N/A self resolveHost host N/A N/A N/A deferred addCallback N/A self handleHostResolvedSuccess N/A N/A N/A deferred addErrback N/A self handleHostResolvedError N/A proxyViaHTTP N/A N/A self host method path postData headers N/A N/A N/A connectionFactory N/A ServerConnectionFactory method path postData headers self N/A N/A connectionFactory protocol ServerConnection N/A N/A N/A N/A self reactor connectTCP host 80 connectionFactory N/A proxyViaSSL N/A N/A self host method path postData headers port N/A N/A N/A clientContextFactory N/A N/A ssl ClientContextFactory N/A connectionFactory N/A ServerConnectionFactory method path postData headers self N/A N/A connectionFactory protocol SSLServerConnection N/A N/A N/A N/A self reactor connectSSL host port connectionFactory clientContextFactory N/A sendExpiredCookies N/A N/A self host path expireHeaders N/A N/A N/A N/A N/A self setResponseCode 302 Moved N/A N/A N/A self setHeader Connection close N/A N/A N/A self setHeader Location N/A N/A http:// host path N/A header expireHeaders N/A N/A N/A N/A self setHeader Set-Cookie header N/A N/A N/A self finish N/A sendSpoofedFaviconResponse N/A N/A self N/A N/A N/A icoFile N/A open N/A N/A self getPathToLockIcon N/A N/A N/A self setResponseCode 200 OK N/A N/A N/A self setHeader Content-type image/x-icon N/A N/A N/A self write N/A N/A icoFile read N/A N/A N/A icoFile close N/A N/A N/A self finish N/A N/A