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
| rule alg_crypto_rc4 { | |
| meta: | |
| descrption = "Identify code for the (A)RC4 cryptographic algorithm." | |
| author = "@shellcromancer <[email protected]>" | |
| version = "0.1" | |
| date = "2022-01-03" | |
| reference = "https://www.goggleheadedhacker.com/blog/post/reversing-crypto-functions#identifying-rc4-in-assembly" | |
| reference = "https://0xc0decafe.com/detect-rc4-encryption-in-malicious-binaries/" | |
| reference = "https://blog.talosintelligence.com/2014/06/an-introduction-to-recognizing-and.html" | |
| strings: |
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
| { | |
| "options": { | |
| "logger_snapshot_event_type": "true", | |
| "schedule_splay_percent": 10 | |
| }, | |
| "platform": "darwin", | |
| "schedule": { | |
| "authorized_keys": { | |
| "query": "SELECT * FROM users CROSS JOIN authorized_keys USING (uid);", |
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
| { | |
| "options": { | |
| "disable_audit": false, | |
| "disable_events": false, | |
| "enable_mouse_events": false, | |
| "enable_keyboard_events": false, | |
| "events_max": 10000, | |
| "events_expiry": 3600, | |
| "read_max": 52428800, | |
| "logger_event_type": false, |
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
| { | |
| "options": { | |
| "config_plugin": "filesystem", | |
| "logger_plugin": "filesystem", | |
| "logger_path": "/var/log/osquery", | |
| "disable_logging": "false", | |
| "log_result_events": "true", | |
| "schedule_splay_percent": "10", | |
| "pidfile": "/var/osquery/osquery.pidfile", | |
| "events_expiry": "3600", |
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
| // demoshell is a nifty beaconing shell useful for demos | |
| package main | |
| /* | |
| * demoshell.go | |
| * Simple reverse shell used in demos | |
| * By J. Stuart McMurray | |
| * Created 20180331 | |
| * Last Modified 20180331 | |
| */ |
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
| if ! hash uudecode; then | |
| uudecode() { | |
| bs=0 | |
| while read -rs t ; do | |
| if [ $bs -eq 1 ] ; then | |
| if [ "a$t" = "aend" ] ; then | |
| bs=2 | |
| else | |
| x=1 | |
| i=($(printf "%d " "'${t:0:1}" "'${t:1:1}" "'${t:2:1}" "'${t:3:1}" "'${t:4:1}" "'${t:5:1}" "'${t:6:1}" "'${t:7:1}" "'${t:8:1}" "'${t:9:1}" "'${t:10:1}" "'${t:11:1}" "'${t:12:1}" "'${t:13:1}" "'${t:14:1}" "'${t:15:1}" "'${t:16:1}" "'${t:17:1}" "'${t:18:1}" "'${t:19:1}" "'${t:20:1}" "'${t:21:1}" "'${t:22:1}" "'${t:23:1}" "'${t:24:1}" "'${t:25:1}" "'${t:26:1}" "'${t:27:1}" "'${t:28:1}" "'${t:29:1}" "'${t:30:1}" "'${t:31:1}" "'${t:32:1}" "'${t:33:1}" "'${t:34:1}" "'${t:35:1}" "'${t:36:1}" "'${t:37:1}" "'${t:38:1}" "'${t:39:1}" "'${t:40:1}" "'${t:41:1}" "'${t:42:1}" "'${t:43:1}" "'${t:44:1}" "'${t:45:1}" "'${t:46:1}" "'${t:47:1}" "'${t:48:1}" "'${t:49:1}" "'${t:50:1}" "'${t:51:1}" "'${t:52:1}" "'${t:53:1}" "'${t:54:1}" "'${t:55:1}" "'${t:56:1}" "'${t:57:1}" "'${t:58:1}" "'${t:59:1}" "'${t:60: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
| #!/bin/bash | |
| # Fallback base64 en-/decoder for systems that lack a native implementation | |
| # | |
| # @param ... - flags | |
| which base64 &>/dev/null || { | |
| # if even od is missing | |
| which od &>/dev/null || od() | |
| { | |
| local C O=0 W=16 |