I hereby claim:
- I am ismailakkila on github.
- I am ismailakkila (https://keybase.io/ismailakkila) on keybase.
- I have a public key ASCU14r3wG4eWbrnBTEwHCPDuV6vTHKIO2_kb_5a9Ql2ygo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#ch9_decrypt_blob.py | |
from Crypto.PublicKey import RSA | |
from Crypto.Cipher import PKCS1_OAEP | |
import base64 | |
import zlib | |
#Our Decryption Function | |
def decrypt_blob(encrypted_blob, private_key): | |
#Import the Private Key and use for decryption using PKCS1_OAEP |
#ch9_encrypt_blob.py | |
from Crypto.PublicKey import RSA | |
from Crypto.Cipher import PKCS1_OAEP | |
import zlib | |
import base64 | |
#Our Encryption Function | |
def encrypt_blob(blob, public_key): | |
#Import the Public Key and use for encryption using PKCS1_OAEP | |
rsa_key = RSA.importKey(public_key) |
#ch9_generate_keys.py | |
from Crypto.PublicKey import RSA | |
#Generate a public/ private key pair using 4096 bits key length (512 bytes) | |
new_key = RSA.generate(4096, e=65537) | |
#The private key in PEM format | |
private_key = new_key.exportKey("PEM") | |
#The public key in PEM Format |
#ch9_simplehttpserver.py | |
import SimpleHTTPServer | |
import SocketServer | |
import urllib | |
#HTTP Request Handler Class | |
class RequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
#POST Method | |
def do_POST(self): | |
content_length = int(self.headers["Content-Length"]) |
#ch8_screenshotter.py | |
import win32api | |
import win32ui | |
import win32gui | |
import win32con | |
filepath = "" | |
width = win32api.GetSystemMetrics(win32con.SM_CXVIRTUALSCREEN) |
from ctypes import * | |
import pyHook | |
import pythoncom | |
import win32clipboard | |
import sys | |
current_window = None | |
current_command = False | |
user32 = windll.user32 |
#ch7_github_trojan.py | |
from github3 import login | |
from datetime import datetime | |
from uuid import getnode | |
import platform | |
import base64 | |
import json | |
import imp | |
import queue | |
import threading |
#ch6_burp_wordlist.py | |
from burp import IBurpExtender | |
from burp import IContextMenuFactory | |
from javax.swing import JMenuItem | |
from java.util import ArrayList, List | |
from HTMLParser import HTMLParser | |
from datetime import datetime | |
import re | |
#This class attempts to strip all tags from and HTML page recieved in the http response |
from burp import IBurpExtender | |
from burp import IContextMenuFactory | |
from javax.swing import JMenuItem | |
from java.net import URL | |
from java.util import List, ArrayList | |
import urllib | |
import json | |
import socket | |
import re | |
import threading |