Skip to content

Instantly share code, notes, and snippets.

View forkwhilefork's full-sized avatar

Ross Tajvar forkwhilefork

  • 18:48 (UTC -05:00)
View GitHub Profile
[
{
"name": "Amazon 1st party",
"url": "javascript: function f() { let sp = new URLSearchParams(window.location.search); sp.set(\"emi\", \"ATVPDKIKX0DER\"); window.location.search = sp.toString(); } f();"
},
{
"name": "IP Tools",
"url": "https://ipv4.tools/"
},
{
@forkwhilefork
forkwhilefork / login-listener.ps1
Last active August 3, 2022 20:25
This scripts listens for RDP login events and then sends an SMS message with the public IP of the computer that logged in.
# this script only works while the console you run it in is still open,
# so I made a scheduled task that starts on system startup and runs as SYSTEM.
# the only think you have to do that's a little weird is with the action:
# program: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
# arguments: -NoExit "C:\path\to\file\login-listener.ps1"
# this object will generate an event any time there's a new entry in the event viewer
# those are two different contextual meanings of the word "event" btw
$EventWatcher = New-Object System.Diagnostics.Eventing.Reader.EventLogWatcher "Microsoft-Windows-RemoteDesktopServices-RdpCoreTS/Operational"

Keybase proof

I hereby claim:

  • I am forkwhilefork on github.
  • I am forkwhilefork (https://keybase.io/forkwhilefork) on keybase.
  • I have a public key whose fingerprint is 7A4F 34AA EE6C 7B29 4665 FDA4 851C 2DA4 24A5 8735

To claim this, I am signing this object: