This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from netfilterqueue import NetfilterQueue | |
import subprocess | |
import signal | |
import dpkt | |
import traceback | |
import socket | |
def observe_dns_hijacking(nfqueue_element): | |
try: | |
ip_packet = dpkt.ip.IP(nfqueue_element.get_payload()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"code.google.com/p/go.crypto/ssh" | |
"code.google.com/p/go.crypto/ssh/terminal" | |
"crypto" | |
"crypto/x509" | |
"crypto/rsa" | |
"encoding/pem" | |
"io" |