Skip to content

Instantly share code, notes, and snippets.

View JoshuaCurry's full-sized avatar

Josh Curry JoshuaCurry

View GitHub Profile
@JoshuaCurry
JoshuaCurry / panasonic-ntcontrol.py
Created June 20, 2021 21:23
A super dodgy script to control panasonic projectors using the NTCONTROL protocol.
#!/usr/bin/python3
from pwn import *
import hashlib
def sendCommand(ip, command, port=1024):
conn = remote(ip,port)
helo = conn.recvuntil(b'\x0d').rstrip(b"\r\n")
print("\r\r")
# Quick and dirty python script to power on/off projector or set any other setting
# Use RS232 command list for commands
# run in a named screen if you're putting in crontab; pwntools requires ncurses to have $TERM
# screen -dmS myscreen /opt/this.py
from pwn import *
import hashlib
def sendCommand(command,ip='192.168.1.128',port=1024):
conn = remote(ip,port)
@JoshuaCurry
JoshuaCurry / cisco_ap_info.py
Created February 8, 2019 19:22
Gets info about currently associated AP from Aironet Extensions
#!/usr/bin/python
import os
import json
#Run tshark, get single beacon frame, decode fields we want.
#Should be only thing on current association frequency beaconing hopefully.
#I can't be bothered with subprocess, cheat.
os.system("tshark -I -i en0 -f 'type mgt subtype beacon' -Tjson -e 'wlan.cisco.ccx1.name' -e 'wlan.cisco.ccx1.clients' -e 'wlan_radio.frequency' -e 'wlan_radio.signal_dbm' -e 'wlan_radio.noise_dbm' -c 1 -Q > /tmp/tsout1 2>/dev/null")
#!/usr/bin/python2.7
class Capacitor:
def __init__(self, name, price, post, volts, capacitance):
self.n = name
self.p = price
self.post = post
self.v = volts
self.c = capacitance
@JoshuaCurry
JoshuaCurry / git_remove_mac_files.sh
Last active December 24, 2017 17:46
Remove .DS_Store and ._thing files macs make from git
git filter-branch --tree-filter 'find . -name "._*" -delete' -f HEAD
git filter-branch --tree-filter 'find . -name ".DS_Store" -delete' -f HEAD
# And now do git push --force

Keybase proof

I hereby claim:

  • I am joshuacurry on github.
  • I am joshcurry (https://keybase.io/joshcurry) on keybase.
  • I have a public key whose fingerprint is B740 9708 64ED 6C13 E1CE AFD4 BA52 3C96 6DA2 D520

To claim this, I am signing this object: