Skip to content

Instantly share code, notes, and snippets.

View timb-machine's full-sized avatar

Tim Brown timb-machine

View GitHub Profile
@timb-machine
timb-machine / no-unqualified-linker-paths.diff.txt example
Last active September 4, 2017 13:54
no-unqualified-linker-paths.diff.txt example
$ LD_LIBRARY_PATH=/test ../glibc-2.19/build-tree/amd64-libc/elf/ld.so ./test-dlopen-LD_LIBRARY_PATH
$ LD_LIBRARY_PATH=test ../glibc-2.19/build-tree/amd64-libc/elf/ld.so ./test-dlopen-LD_LIBRARY_PATH
19635: not fully qualified, marking insecure=test/
19635: not fully qualified, marking insecure=test/
19635: not fully qualified, marking insecure=test/
19635: not fully qualified, marking insecure=test/
@timb-machine
timb-machine / Biscuit example
Last active September 4, 2017 03:44
Biscuit example
$ sudo ./biscuit.py
[@] biscuit> scan
['/dev/ttyUSB0']
[@] biscuit> select /dev/ttyUSB0
[@/dev/ttyUSB0] biscuit> open
[@/dev/ttyUSB0 *] biscuit> available
['modules/local/ATTRACE.py', 'modules/local/BaudRate.py', 'modules/local/RunScript.py', 'modules/local/Terminal.py']
[@/dev/ttyUSB0 *] biscuit> use modules/local/ATTRACE.py
ATTRACE
[ATTRACE@/dev/ttyUSB0 *] biscuit> show
@timb-machine
timb-machine / Avahi FUCK
Created September 4, 2017 03:06
Avahi FUCK
# socat unix-connect:/var/run/avahi-daemon/socket stdin
FUCK
+ FUCK: Go fuck yourself!
@timb-machine
timb-machine / get-sigs.ps1
Created September 4, 2017 02:47
get-sigs.ps1
function Get-Sigs($directorypath = $pwd, [string[]]$patternstring = "*.exe") {
foreach ($fileitem in Get-ChildItem $directorypath)) {
if ($patternstring | Where { $fileitem -Like $_ }) {
Get-AuthenticodeSignature $fileitem.FullName
}
if (Test-Path $fileitem.FullName -PathType Container) {
Get-Sigs $fileitem.FullName $patternstring
}
}
}