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
| ==> main.py <== | |
| import math | |
| from Crypto.Hash import SHA256 | |
| from Crypto.Util.number import getPrime, inverse, bytes_to_long, long_to_bytes, inverse, isPrime | |
| import pyecm | |
| def phi(p, q): | |
| " Euler totient " | |
| return (p - 1) * (q - 1) |
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
| const hashCode = str => | |
| _.reduce( | |
| str, | |
| (acc, c) => { | |
| return (acc += c.charCodeAt(0)); // + ((acc << 5) - acc); | |
| }, | |
| 0 | |
| ); | |
| const intToRGB = i => { |
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
| 00000000004011b0 <my_srand>: | |
| 4011b0: 55 push rbp | |
| 4011b1: 48 89 e5 mov rbp,rsp | |
| 4011b4: 89 7d fc mov DWORD PTR [rbp-0x4],edi | |
| 4011b7: 8b 7d fc mov edi,DWORD PTR [rbp-0x4] | |
| 4011ba: 89 3c 25 3c 40 40 00 mov DWORD PTR ds:0x40403c,edi ; 0x40403c holds rand_state | |
| 4011c1: 5d pop rbp | |
| 4011c2: c3 ret | |
| 4011c3: 66 2e 0f 1f 84 00 00 nop WORD PTR cs:[rax+rax*1+0x0] | |
| 4011ca: 00 00 00 |
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
| #!/usr/bin/env python | |
| # Extract and decode McAfee quarantine BUP files | |
| # See https://kc.mcafee.com/corporate/index?page=content&id=KB72755 | |
| import sys | |
| import zipfile | |
| def decode(filename): |
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
| {"timestamp":"2019-07-31T00:00:00Z","deviceRegex":{"mdns_A":[{"noMerge":true,"caseInsensitive":true,"pattern":"iphone","type":"Phone","model":"iPhone","os":"iOS","manufacturer":"Apple Inc."},{"noMerge":true,"caseInsensitive":true,"pattern":"ipad","type":"Tablet","model":"iPad","os":"iOS","manufacturer":"Apple Inc."},{"noMerge":true,"caseInsensitive":true,"pattern":"ipod","type":"Mobile","model":"iPod Touch","os":"iOS","manufacturer":"Apple Inc."},{"regex":true,"noMerge":true,"confidence":2064,"pattern":"dp-[[:alnum:]]+","model":"Echo","type":"DigitalAssistant","manufacturer":"Amazon Technologies Inc."},{"noMerge":true,"confidence":2064,"pattern":"F7C064","model":"Wemo\u00ae Bridge","type":"WeMoBridge","manufacturer":"Belkin International, Inc."}],"upnp_Notify_Server":[{"os":"Windows","pattern":"Microsoft-Windows-NT/5.1","description":"","model":"","manufacturer":"","type":"Computer","revision":""}],"http_Content":[{"pattern":"<title>DWL-2100AP</title>","model":"DWL-2100AP","type":"Infrastructure", |
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
| import os | |
| import sys | |
| import time | |
| from optparse import OptionParser | |
| import requests | |
| import selenium | |
| import speech_recognition as sr | |
| from selenium import webdriver | |
| from selenium.common.exceptions import NoSuchElementException |
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
| #!/bin/sh | |
| out="vol_dump" | |
| image=$1 # .raw .vmem .sav .bin .mem etc | |
| function vol_op { | |
| echo "[+] $1: $2 ${@:3}" | |
| volatility -f $1 --profile=$2 ${@:3} > $out/$2/$3.txt | |
| } |
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
| <# | |
| ____ ______ ______ ____ __ __ | |
| /\ _`\ /\ _ \ /\__ _\/\ _`\ /\ \/\ \ | |
| \ \ \L\ \\ \ \L\ \\/_/\ \/\ \ \/\_\\ \ \_\ \ | |
| \ \ ,__/ \ \ __ \ \ \ \ \ \ \/_/_\ \ _ \ | |
| \ \ \/ \ \ \/\ \ \ \ \ \ \ \L\ \\ \ \ \ \ | |
| \ \_\ \ \_\ \_\ \ \_\ \ \____/ \ \_\ \_\ | |
| \/_/ \/_/\/_/ \/_/ \/___/ \/_/\/_/ | |
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 ctypes import (windll, wintypes, c_uint64, cast, POINTER, Union, c_ubyte, | |
| LittleEndianStructure, byref, c_size_t) | |
| import zlib | |
| # types and flags | |
| DELTA_FLAG_TYPE = c_uint64 | |
| DELTA_FLAG_NONE = 0x00000000 | |
| DELTA_APPLY_FLAG_ALLOW_PA19 = 0x00000001 |
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
| set disassembly-flavor intel | |
| set disassemble-next-line on | |
| set history save on | |
| set print pretty on | |
| set pagination off | |
| # iso env | |
| unset env LINES | |
| unset env COLUMNS |