Esempio n. 1
0
	def init(self):
		if self.isAdmin() == False:
			ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, " ".join(sys.argv), None, 1)
			sys.exit()
		# elevate(show_console=False)
		arch = os.environ['PROCESSOR_ARCHITEW6432']
		if arch == "AMD64":
			self.amd64 = True

		if self.amd64:
			self.prompt = Fore.CYAN + "[WROT " + Fore.MAGENTA + "x64" + Fore.CYAN + "] "
		else:
			self.prompt = Fore.CYAN + "[WROT " + Fore.MAGENTA + "x32" + Fore.CYAN + "] "
		coloramainit(autoreset=True)
		# os.system("cls")
		tprint("WROT")
		print(Fore.YELLOW + "Welcome to \"Wrapper for Removing Office Tool\" by kiber.io!")
		print(Fore.GREEN + "Your random smile for now: " + art("random") + "\n")
		print(Fore.CYAN + "This script is just a wrapper for office deletion scripts from official Microsoft GitHub.\nVBScript support is required for scripts to work.\n")

		currDir = os.path.abspath(os.getcwd())

		self.del3path = currDir + "\\" + self.del3path
		self.del7path = currDir + "\\" + self.del7path
		self.del10path = currDir + "\\" + self.del10path
		self.del13path = currDir + "\\" + self.del13path
		self.del16path = currDir + "\\" + self.del16path
		self.delC2Rpath = currDir + "\\" + self.delC2Rpath

		return self
Esempio n. 2
0
def printBanner():
    """
    Mencetak banner brutemap ke terminal
    """

    coloramainit()
    stdoutWrite(BANNER)
Esempio n. 3
0
 def __init__(self):
     coloramainit()
     self.client = WebSocketClient()
     self.client.on_connected(self.connected)
     self.client.on_disconnected(self.disconnected)
     self.client.on_error(self.error_handler)
     self.client.on_message_received(self.message_handler)
     self.message_service = MessageService(self.client)
Esempio n. 4
0
 def __init__(self, **kwargs):
     coloramainit()
     self.helpers = Helpers()
     self.interface = ''
     self.tmpdir = mkdtemp('autopent')
     if not self.tmpdir.endswith(os.sep):
         self.tmpdir += os.sep
     for name, value in kwargs.items():
         if name == 'wlan' and value == True:
             self.wlan = Wlan(self.tmpdir)
Esempio n. 5
0
    def get_options(self, user_args=None):
        (options, args) = self.parse_args(user_args)
        if (not options.url and not options.readfile and not options.dork
                and not options.dork_file and not options.imx
                and not options.flash and not options.update
                and not options.xsser_gtk and not options.wizard
                and not options.xst and not options.target):
            print "\n", '=' * 75
            print self.version
            print "-----------", "\n"
            print self.description, "\n"
            print '=' * 75
            print "Damailah Indonesia ku..."
            print "From: [email protected]"
            coloramainit()
            print(
                Fore.RED + '''
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$*****$$$$$$$$$$$$$$
$$$$$$$$"         "$$$$$$$$$$$
$$$$$P"  .ed  4ee.  "$$$$$$$$$
$$$$P  .$$$$  4$$$b.  *$$$$$$$
$$$$  .$$$$$  4$$$$$  ^$$$$$$$
$$$F  $$$$$*   *$$$$F  $$$$$$$''')
            print(
                Fore.RESET + Back.RESET + '''$$$F  $$$$"     ^$$$F  $$$$$$$
$$$$  '$*  z  4.  *$"  $$$$$$$
$$$$L  " .d$  4$e     d$$$$$$$
$$$$$b   "*$  4P*"  .d$$$$$$$$
$$$$$$$e.         .e$$$$$$$$$$
$$$$$$$$$$eee.eed$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$Indonesia''')
            print ""
            print '=' * 75
            print "Total exploits:", self.total_vectors + " = XSS: " + str(
                self.vectors_fuzz) + " + DCP: " + str(
                    self.vectors_dcp) + " + DOM: " + str(
                        self.vectors_dom) + " + HTTPsr: " + str(
                            self.vectors_httpsr)
            print '=' * 75
            print "\n-> For HELP use: casperx -h or casperx --help"
            print '=' * 55, "\n"
            return False
        return options
Esempio n. 6
0
import query
import collect 
import httpapi
import users 
import account 

import httpiecolor
from httpapi import build_url
from pretty import pprint_table


log = logging.getLogger("lytics")
APIAGENT = "LioCLI"
BATCH_SIZE = 50

coloramainit()

modules = {"query":query,"csv":csvupload,"api":httpapi,
    "collect":collect,"users":users, "account":account}



def get_doc(method=None):
    "Get doc for a specific module or all"
    args = [arg for arg in sys.argv[1:] if arg not in ["--help","help"]]
    if len(args) == 1:
        method = args[0]
    #print("IN GET_DOC method=%s args=%s" %(method, args))
    if not method:
        return '\n'.join([modules[n].__doc__ for n in modules.keys()])
    else:
Esempio n. 7
0
import subprocess
from datetime import *
import logging
from colorama import Fore, init as coloramainit
import re
import os

coloramainit(autoreset=True)
debug = False

# IntelSSD wearoutSmartAttribute (233)
# SamsungSSD wearoutSmartAttribute(177)

verif_attributes = {
    'INTEL': {
        'Media_Wearout_Indicator': 95
    },
    'Micron': {
        'Media_Wearout_Indicator': 95
    },
    'SAMSUNG': {
        'Media_Wearout_Indicator': 95
    }
}

ssd_pns = {
    1: {
        "SSD-00001-A": "MTFDDAK960MAV"
    },
    2: {
        "SSD-00002-A": "INTEL SSDSC2BB016T401"
Esempio n. 8
0
# File Name                       : 20140101_003335.jpg                   # zur Kontrolle heranziehen!

# Class-less and UI-less for maximum performance
# no documentation for memory reasons

import os
import sys
import shutil
from datetime import timedelta, datetime

import pyexiv2
import win32file
import win32con
from colorama import Fore, Back, Style
from colorama import init as coloramainit
coloramainit()


if len(sys.argv) != 2 or not os.path.exists(sys.argv[1]):
    print "parameter missing!"
    print "this script takes one path to a folder with JPGs as command line parameter"
    print ""
    print "https://github.com/ThomDietrich/EXIFDateTimeAdjust"
    sys.exit()
path = os.path.abspath(sys.argv[1].rstrip('\\'))


def getJpgFiles(path):
    files = []
    for entry in os.listdir(path):
        filepath = path + os.sep + entry
Esempio n. 9
0
def main():
    '''
    Contains actions depending on user selection of a choice as in the above
    menu
    '''
    coloramainit()
    while True:
        choice = menu()
        if choice == 99:
            print("Bye")
            break
        if choice == 98:
            print()
            print(
                B +
                "[+]    The following network interfaces are available on this machine"
                + RA)
            os.system('airmon-ng')
        if choice == 97:
            interface = str(
                input(B + "[(1/2)-->] Enter the networking interface name: " +
                      RA))
            mac = str(
                input(B + "[(2/2)-->] Enter the desired MAC address: " + RA))
            os.system('./autopent.py -cm -i ' + interface + ' -m ' + mac)
        if choice == 0:
            os.system('clear')
            os.system('./autopent.py --help')
        if choice == 1:
            interface = str(
                input(B + "[(1/1)-->] Enter the networking interface name: " +
                      RA))
            os.system('./autopent.py -e -i' + interface)
        if choice == 2:
            interface = str(
                input(B + "[(1/1)-->] Enter the networking interface name: " +
                      RA))
            os.system('./autopent.py -d -i ' + interface)
        if choice == 3:
            channel = str(
                input(
                    B +
                    "[(1/2)-->] Enter the channel number(1 to 11 or 99 for all channels): "
                    + RA))
            interface = str(
                input(B + "[(2/2)-->] Enter the networking interface name: " +
                      RA))
            os.system('./autopent.py -s -c ' + channel + ' -i' + interface)
        if choice == 4:
            bssid = str(input(B + "[(1/3)-->] Enter the AP's BSSID: " + RA))
            channel = str(
                input(B + "[(2/3)-->] Enter the AP's channel number: " + RA))
            interface = str(
                input(B + "[(3/3)-->] Enter the networking interface name: " +
                      RA))
            os.system('./autopent.py -dc -c ' + channel + ' -i ' + interface +
                      ' -b ' + bssid)
        if choice == 5:
            bssid = str(input(B + "[(1/3)-->] Enter the AP's BSSID: " + RA))
            interface = str(
                input(B + "[(2/3)-->] Enter the networking interface name: " +
                      RA))
            bssidc = str(
                input(
                    B +
                    "[(3/3)-->] Enter the Client BSSID(press Enter if none): "
                    + RA))
            if bssidc == '':
                os.system('./autopent.py -sd ' + '-i ' + interface + ' -b ' +
                          bssid)
            elif bssidc != '':
                os.system('./autopent.py -sd ' + '-i ' + interface + ' -b ' +
                          bssid + ' -bc ' + bssidc)
        if choice == 6:
            bssid = str(input(B + "[(1/4)-->] Enter the AP's BSSID: " + RA))
            interface = str(
                input(B + "[(2/4)-->] Enter the networking interface name: " +
                      RA))
            essid = str(input(B + "[(3/4)-->] Enter the desired ESSID: " + RA))
            channel = str(
                input(B + "[(4/4)-->] Enter the desired channel: " + RA))
            os.system('./autopent.py -ev ' + '-i ' + interface + ' -b ' +
                      bssid + ' -ed ' + essid + ' -c ' + channel)
        if choice == 7:
            bssid = str(input(B + "[(1/4)-->] Enter the AP's BSSID: " + RA))
            interface = str(
                input(B + "[(2/4)-->] Enter the networking interface name: " +
                      RA))
            channel = str(
                input(B + "[(3/4)-->] Enter the AP's channel number: " + RA))
            bssidc = bssidc = str(
                input(B + "[(4/4)-->] Enter a connected client's BSSID: " +
                      RA))
            os.system('./autopent.py -ce ' + '-i ' + interface + ' -b ' +
                      bssid + ' -c ' + channel + ' -bc ' + bssidc)
        if choice == 8:
            bssid = str(input(B + "[(1/3)-->] Enter the AP's BSSID: " + RA))
            interface = str(
                input(B + "[(2/3)-->] Enter the networking interface name: " +
                      RA))
            channel = str(
                input(B + "[(3/3)-->] Enter the AP's channel number: " + RA))
            os.system('./autopent.py -ca ' + '-i ' + interface + ' -b ' +
                      bssid + ' -c ' + channel)
        if choice == 9:
            bssid = str(input(B + "[(1/4)-->] Enter the AP's BSSID: " + RA))
            interface = str(
                input(B + "[(2/4)-->] Enter the networking interface name: " +
                      RA))
            channel = str(
                input(B + "[(3/4)-->] Enter the AP's channel number: " + RA))
            essid = str(input(B + "[(4/4)-->] Enter the desired ESSID: " + RA))
            os.system('./autopent.py -it ' + '-i ' + interface + ' -b ' +
                      bssid + ' -c ' + channel + ' -ed ' + essid)
        if choice == 10:
            bssid = str(input(B + "[(1/4)-->] Enter the AP's BSSID: " + RA))
            interface = str(
                input(B + "[(2/4)-->] Enter the networking interface name: " +
                      RA))
            channel = str(
                input(B + "[(3/4)-->] Enter the AP's channel number: " + RA))
            essid = str(input(B + "[(4/4)-->] Enter the desired ESSID: " + RA))
            os.system('./autopent.py -ds ' + '-i ' + interface + ' -b ' +
                      bssid + ' -c ' + channel + ' -ed ' + essid)
Esempio n. 10
0
 def __init__(self):
     coloramainit()