Skip to content

Instantly share code, notes, and snippets.

View RakhithJK's full-sized avatar

RakhithJK

View GitHub Profile
@RakhithJK
RakhithJK / gist:29c856dc03c4f0674141fe7fad3a70de
Created November 2, 2024 17:00 — forked from daniel-marschner/gist:4001503
Checks if the given domain is reachable as long as there is a 200 OK coming back. Super simple! ;)
require 'net/http'
require 'date'
# Fetches the first argument passed to the script, if no is given
# it raises and error with this simple custom message.
unless @domain = ARGV.first
raise "You need to pass in a domain like www.6wunderkinder.com"
end
puts "[#{DateTime.now}] Started the DNS check for #{@domain}..."
@RakhithJK
RakhithJK / dnscheck.rb
Created November 2, 2024 17:00 — forked from michenriksen/dnscheck.rb
Loops until given domain is resolvable. Used to check when new domains are live.
require 'resolv'
require 'date'
unless @domain = ARGV.first
puts "DNS Checker\n\n"
puts "Performs a DNS lookup on a domain until it can be resolved.\n\n"
puts "USAGE:"
puts " ruby #{__FILE__} <domain> [<sleep>]\n\n"
@RakhithJK
RakhithJK / viewsource.sh
Created November 2, 2024 17:00 — forked from michenriksen/viewsource.sh
Simple function to view the source code of a web page in a terminal with syntax highlighting. Very convenient for checking out potentially malicious websites before rendering them in a browser. [Pygments](http://pygments.org/) is used for the syntax highlighting and can be installed with `sudo easy_install pygments`. Copy/Paste the function into…
function viewsource {
/usr/bin/curl --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0" -s "$1" | /usr/local/bin/pygmentize -g -O encoding='utf-8'
}
@RakhithJK
RakhithJK / mailspoof.rb
Created November 2, 2024 16:58 — forked from michenriksen/mailspoof.rb
A Ruby script for spoofing mail directly to the destination's SMTP server. This is not my work, got it from https://defuse.ca/email-spoofing-in-ruby.htm
# A Ruby script for spoofing mail directly to the destination's SMTP server.
# https://defuse.ca/email-spoofing-in-ruby.htm
#
# This code is in the public domain. Do whatever you want with it.
#
# Usage: mailspoof.rb <options>
# -t, --to ADDRESS Send mail to this email address
# -f, --from ADDRESS Send mail from this email address
# -s, --subject SUBJECT Mail subject
# -m, --mail FILE File containing email message
@RakhithJK
RakhithJK / anti-theft
Created November 2, 2024 16:57 — forked from michenriksen/anti-theft
Simple anti-theft script for Debian systems. When the machine enters battery mode while in lockscreen/screensaver, kill KeePassX, Chromium, Firefox, dismount TrueCrypt volumes and shut down.
#!/bin/sh
# Put this file in /etc/pm/power.d/ and make it executable
case $1 in
true)
# Replace <username> with your actual username.
# You might need to use gnome-screensaver-command instead
if DISPLAY=:0.0 XAUTHORITY=/home/<username>/.Xauthority sudo -u <username> cinnamon-screensaver-command -q | egrep -q 'is active'; then
# Kill KeePassX
killall keepassx
@RakhithJK
RakhithJK / dnsdb_crawl.rb
Created November 2, 2024 16:57 — forked from michenriksen/dnsdb_crawl.rb
Quick Ruby script for extracting domains from dnsdb.org
#!/usr/bin/env ruby
require "net/http"
require "uri"
require "cgi"
require "resolv"
require "optparse"
require "socket"
require "timeout"
@RakhithJK
RakhithJK / windows11-ms-settings-uri-commands.csv
Created October 2, 2024 15:44 — forked from dbilanoski/windows11-ms-settings-uri-commands.csv
Complete List Of Windows 11 MS-Settings URI Commands
Category Settings Page URI Command
Accounts Access work or school ms-settings:workplace
Accounts Email & app accounts ms-settings:emailandaccounts
Accounts Family & other people ms-settings:otherusers
Accounts Set up a kiosk ms-settings:assignedaccess
Accounts Sign-in options ms-settings:signinoptions
Accounts Sync your settings ms-settings:sync
Accounts Windows Hello setup ms-settings:signinoptions-launchfaceenrollment
Accounts Your info ms-settings:yourinfo
Apps Apps & Features ms-settings:appsfeatures
@RakhithJK
RakhithJK / windows11-shell-folders-by-name.csv
Created October 2, 2024 15:43 — forked from dbilanoski/windows11-shell-folders-by-name.csv
Complete List Of Windows 11 Shell Folders By Name
Name Shell Command Shortcut
3D Objects explorer "shell:3D Objects"
AccountPictures explorer "shell:AccountPictures"
AddNewProgramsFolder explorer "shell:AddNewProgramsFolder"
Administrative Tools explorer "shell:Administrative Tools"
AppData explorer "shell:AppData"
AppDataDesktop explorer "shell:AppDataDesktop"
AppDataDocuments explorer "shell:AppDataDocuments"
AppDataFavorites explorer "shell:AppDataFavorites"
AppDataProgramData explorer "shell:AppDataProgramData"
@RakhithJK
RakhithJK / windows11-shell-folders-by-clsid.csv
Created October 2, 2024 15:43 — forked from dbilanoski/windows11-shell-folders-by-clsid.csv
Complete List Of Windows 11 Shell Folders By CLSID GUIDs
Name Shell Command Shortcut
%UserProfile% explorer "shell:::{59031a47-3f72-44a7-89c5-5595fe6b30ee}"
%UserProfile%\Desktop explorer "shell:::{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}"
%UserProfile%\Documents explorer "shell:::{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}"
%UserProfile%\Downloads explorer "shell:::{088e3905-0323-4b02-9826-5d99428e115f}"
%UserProfile%\Pictures explorer "shell:::{24ad3ad4-a569-4530-98e1-ab02f9417aa8}"
Add Network Location explorer "shell:::{D4480A50-BA28-11d1-8E75-00C04FA31A86}"
Additional Information explorer "shell:::{C58C4893-3BE0-4B45-ABB5-A63E4B8C8651}\resultPage"
Advanced Problem Reporting Settings explorer "shell:::{BB64F8A7-BEE7-4E1A-AB8D-7D8273F7FDB6}\pageAdvSettings"
Advanced sharing settings explorer "shell:::{8E908FC9-BECC-40f6-915B-F4CA0E70D03D}\Advanced"