Skip to content

Instantly share code, notes, and snippets.

View Misterguruman's full-sized avatar

Joseph P Langford Misterguruman

  • Lynchburg, VA
  • 12:58 (UTC -04:00)
View GitHub Profile
#!/usr/bin/env bash
sudo yum groups install -y Development\ tools
sudo yum install -y cmake
sudo yum install -y python34-{devel,pip}
sudo pip-3.4 install neovim --upgrade
(
cd "$(mktemp -d)"
git clone https://github.com/neovim/neovim.git
cd neovim
make CMAKE_BUILD_TYPE=Release
@Misterguruman
Misterguruman / ping.py
Created October 14, 2022 16:47
A script written to ping a select group of IP Addresses to look for devices being down during a copier deployment
#!/usr/bin/python
import pyping, time, datetime
log_file = open('log.txt', "a")
def log(ip):
ts = time.time()
time_stamp = datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d %H:%M:%S')
log_file.write(time_stamp + ' : ' + ip + '\n')
@Misterguruman
Misterguruman / PeDeEff.py
Created October 14, 2022 16:41
A script written to correct a file management software incorrectly flipping images on a file server. This would scan certain directories and correct the pdfs.
from PyPDF2 import PdfFileWriter, PdfFileReader
import os, datetime, time
cwd = os.getcwd()
root_dir = cwd
main_dir = cwd + '\\00\\00'
log_path = cwd + '\\PeDeEfLog'
log_file_path = log_path + '\\log.txt'
class Parser():
@Misterguruman
Misterguruman / SR_Update.py
Created October 14, 2022 16:37
A script written for a friend to write their Overwatch Rating to a text file to be read by OBS during stream
import requests
import json
def SRUpdate():
data = requests.get('https://ow-api.com/v1/stats/pc/us/REDACTED/profile').text
data = json.loads(data)
with open('starting_sr.txt', 'w') as f:
f.write(str(data['rating']))
f.close()
@Misterguruman
Misterguruman / TCPchat.py
Created October 14, 2022 16:32
A simple TCP client and server turned chat application back when I was learning Python
"""
Simple TCP 2-way Chat
Author: Joseph Paul Langford
Contact: Joseph.P.Langford@gmail.com
"""
import socket
import threading
from time import sleep
import argparse
import os
@Misterguruman
Misterguruman / deploy.sh
Created October 14, 2022 16:29
A series of commands used to automate a copier deployment, any company relevant data has been generalized for the former client's security
#!/bin/bash
echo "Installing Printer Drivers..."
sudo installer -pkg /Volumes/VBS/bizhub_754_109.pkg -target /
echo "Installing Drivers Complete... Adding Printer"
lpadmin -p Moton_KM -L "REDACTED" -E -v lpd://1.1.1.1 -P /Library/Printers/PPDs/Contents/Resources/KONICAMINOLTA654.gz
echo "Added Printer... Changing Configuration"
lpadmin -p Moton_KM -o Finisher=FS534
echo "Added Finisher -> FS534"
lpadmin -p Moton_KM -o KMPunchUnit=PK520-23
@Misterguruman
Misterguruman / Powershell_ActiveDirectory_AttackDefense_Notes.ps1
Created October 11, 2022 16:14
Some notes from a security course on AD
#####Domain Enumeration#####
#Author: Joseph Langford
#Source: Active Directory Attack and Defense - PentesterAcademy.com
#.Net "Get Domain"
$ADClass = [System.DirectoryServices.ActiveDirectory.Domain]
$ADClass::GetCurrentDomain()
#Powerview GitHub Location THIS IS A PENTESTING TOOLKIT. DOWNLOADING IN SECURE ENVIRONMENTS CAN TRIGGER WINDOWS DEFENDER
"https://github.com/PowerShellMafia/PowerSploit/blob/master/Recon/PowerView.ps1"