Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/l/a/LANs.py-HEAD/LANs.py   LANs.py(Download)
            if any(i in self.html_url for i in d):
               self.html_url = None
               payload.set_verdict(nfqueue.NF_ACCEPT)
               return
         else:
            payload.set_verdict(nfqueue.NF_ACCEPT)
         else:
            self.user_agent = "'"+self.get_user_agent(header_lines)+"'"
         payload.set_verdict(nfqueue.NF_ACCEPT)
         return
 
         for h in header_lines:
            if '1.1 302' in h or '1.1 301' in h: # Allow redirects to go thru unperturbed
               payload.set_verdict(nfqueue.NF_ACCEPT)
               self.html_url = None
               return
            body = r.text.encode('utf-8')
         except Exception:
            payload.set_verdict(nfqueue.NF_ACCEPT)
 
         # INJECT

src/d/n/dnsspoof-HEAD/dnsspoof.py   dnsspoof(Download)
    localIP = [x[4] for x in scapy.all.conf.route.routes if x[2] != '0.0.0.0'][0]
    if not pkt.haslayer(DNSQR):
        payload.set_verdict(nfqueue.NF_ACCEPT)
    else:
        if arg_parser().spoofall:
                  DNS(id=pkt[DNS].id, qr=1, aa=1, qd=pkt[DNS].qd,\
                  an=DNSRR(rrname=pkt[DNS].qd.qname, ttl=10, rdata=rIP))
    payload.set_verdict_modified(nfqueue.NF_ACCEPT, str(spoofed_pkt), len(spoofed_pkt))
    print '[+] Sent spoofed packet for %s' % pkt[DNSQR].qname[:-1]
 

src/g/0/g0tBeEF-HEAD/g0tbeef.py   g0tBeEF(Download)
                        data = packet['Raw'].load
                except:
			payload.set_verdict(nfqueue.NF_ACCEPT)
                        return
		# find data to mod
		if ("GET" in data):
			print "[*] caught traffic from %s:%i to %s:%i" % (packet.src,packet.sport,packet.dst,packet.dport)
			payload.set_verdict(nfqueue.NF_ACCEPT)

src/d/r/drop-HEAD/gza/gzatcp.py   drop(Download)
            return
        else:
            payload.set_verdict(nfqueue.NF_ACCEPT)
            return
 

src/d/r/drop-HEAD/gza/gzadns.py   drop(Download)
            return
        else:
            payload.set_verdict(nfqueue.NF_ACCEPT)
            return
 

src/d/r/drop-HEAD/gza/gzacommon.py   drop(Download)
    def playgame(self, payload):
        payload.set_verdict(nfqueue.NF_ACCEPT)
 
    def startgame(self):
        good = False

src/o/p/opensvp-HEAD/src/nodpi.py   opensvp(Download)
        if self.verbose:
            print "Packet accepted\n"
        payload.set_verdict(nfqueue.NF_ACCEPT)
        return 1
 

src/p/y/pystack-1.0.0/pystack/nfqueue_utils.py   pystack(Download)
    def process(payload):
        data = payload.get_data()
        p = IP(data)
        print p.summary()
        payload.set_verdict(nfqueue.NF_ACCEPT)