Skip to content

Instantly share code, notes, and snippets.

View ryanvillarreal's full-sized avatar
💭
Confused as to why GH is asking about my status

Ryan Villarreal ryanvillarreal

💭
Confused as to why GH is asking about my status
View GitHub Profile
from pyHS100 import Discover,SmartPlug
#https://github.com/GadgetReactor/pyHS100
def lamp():
alias = "Office"
# discover which device is aliased to office
for dev in Discover.discover().values():
if (dev.alias == "Office"):
host = dev.host
# check to see if the light is off or on - toggle according
@ryanvillarreal
ryanvillarreal / simlab-inventory-check.py
Created May 5, 2021 04:23
Checking Sim-Lab inventory
#!/usr/bin/python3
from bs4 import BeautifulSoup
import requests,time
from pushover import init,Client
from datetime import datetime
api = "<INSERT PUSHOVER API KEY>"
user_key = "<INSERT PUSHOVER USER KEY>"
// mostly meant for simlab, would need to change the mechanics to check other sites.
@ryanvillarreal
ryanvillarreal / match.py
Created January 26, 2021 21:24
Match SecretsDump File with Cracked File - Lots of Caveats here !use at your own risk
#!/usr/bin/python3
def dostuff():
outfile = open("matched.txt", "a")
og = open("./secretsdump.txt", 'r')
with open("./cracked.txt", 'r') as cracked:
for line in cracked:
hash_cracked = (line[:line.index(":")].strip())
password = (line[line.index(":"):].strip())
with open("./secretsdump.txt") as og:
#!/usr/bin/python
# Add your OAUTH id and Event ID here
oauth = ''
event_id = ''
# load imports
from eventbrite import Eventbrite
import sys

Keybase proof

I hereby claim:

  • I am ryanvillarreal on github.
  • I am l33tllama (https://keybase.io/l33tllama) on keybase.
  • I have a public key ASDf8Gw2yNCOVpNDJcRoBwaAdjdFg6OH84LrRi1ZbOssQAo

To claim this, I am signing this object:

@ryanvillarreal
ryanvillarreal / install-arch-linux-on-btrfs-subvolume-inside-luks
Last active July 23, 2019 16:42 — forked from ansulev/install-arch-linux-on-btrfs-subvolume-inside-luks
Install Arch Linux with full encrypted btrfs subvolume inside luks
#!/bin/bash
# Install Arch Linux with full encrypted btrfs subvolume inside luks
# Hardware: UEFI system, Integrated GPU, Lenovo Thinkpad T440, SSD, Wifi
# Please adjust for your needs.
# filename: install-arch-linux-on-btrfs-subvolume-inside-luks.txt
# The official guide: https://wiki.archlinux.org/index.php/Installation_Guide
# Download the archiso image from https://www.archlinux.org/download/
# Copy to a usb-drive
@ryanvillarreal
ryanvillarreal / auto.cap
Last active May 22, 2019 21:59
Bettercap for Fun
# https://www.evilsocket.net/2018/07/28/Project-PITA-Writeup-build-a-mini-mass-deauther-using-bettercap-and-a-Raspberry-Pi-Zero-W/
# setup the API settings
set api.rest.username changeme
set api.rest.password changeme
set api.rest.address 0.0.0.0
# update for specifying bettercap log location
set events.stream.output ~/bettercap.log
set events.stream.output.rotate false
@ryanvillarreal
ryanvillarreal / setscreen.sh
Created December 6, 2017 15:04
setscreen.sh
xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Virtual1 1920x1080
xrandr --output Virtual1 --mode 1920x1080
34.170.30.202
137.116.81.24
204.79.197.200
23.218.212.69
65.39.117.230
65.55.108.23
a-0001.a-msedge.net
choice.microsoft.com
choice.microsoft.com.nsatc.net
compatexchange.cloudapp.net