Skip to content

Instantly share code, notes, and snippets.

@GENiEBEN
GENiEBEN / DeadGames.ahk
Last active April 5, 2020 22:19
Finds left-over folders from uninstalled Steam games.
;============================================================================================================
;DeadGames script 2020.04.05
;https://github.com/GENiEBEN
;============================================================================================================
;This script will detect which Steam games have left folders behind after uninstallation by assuming any game
;folder without an .exe (recursive) is no longer a playable/installed game. TODO:Linux/Mac support.
;Please place it in the prefered Steam library, under the \steamapps\common\ folder.
;Default behaviour is to rename the folders by adding _ as a prefix and to delete completely empty folders.
;============================================================================================================
#NoEnv
@jgamblin
jgamblin / antiautosploit.py
Last active June 1, 2023 01:57
Blocks Shodan IPs From Scanning Your Servers.
#!/usr/bin/python3
import os
shodan = ["104.131.0.69", "104.236.198.48", "155.94.222.12","155.94.254.133", "155.94.254.143", "162.159.244.38", "185.181.102.18", "188.138.9.50", "198.20.69.74", "198.20.69.98", "198.20.70.114", "198.20.87.98", "198.20.99.130", "208.180.20.97", "209.126.110.38", "216.117.2.180", "66.240.192.138", "66.240.219.146", "66.240.236.119", "71.6.135.131", "71.6.146.185", "71.6.158.166", "71.6.165.200", "71.6.167.142", "82.221.105.6", "82.221.105.7", "85.25.103.50", "85.25.43.94", "93.120.27.62", "98.143.148.107", "98.143.148.135"]
for ip in shodan:
os.system("iptables -A INPUT -s {} -j DROP".format(ip))
# Powershell script to bypass UAC on Vista+ assuming
# there exists one elevated process on the same desktop.
# Technical details in:
# https://tyranidslair.blogspot.co.uk/2017/05/reading-your-way-around-uac-part-1.html
# https://tyranidslair.blogspot.co.uk/2017/05/reading-your-way-around-uac-part-2.html
# https://tyranidslair.blogspot.co.uk/2017/05/reading-your-way-around-uac-part-3.html
# You need to Install-Module NtObjectManager for this to run.
Import-Module NtObjectManager