Skip to content

Instantly share code, notes, and snippets.

Avatar
🎶
Rollin'

Mehul Mohan mehulmpt

🎶
Rollin'
View GitHub Profile
View index.js
const app = require('express')()
app.listen(1337)
@mehulmpt
mehulmpt / index.js
Last active Apr 28, 2020
Slow Loris attack using Node
View index.js
const net = require('net')
const opts = {
host: 'localhost',
port: 1234,
sockets: 2000,
respawn: false,
rate: 600,
method: 'GET',
path: '/'
@mehulmpt
mehulmpt / profiles.json
Last active Sep 5, 2020
Sample profiles.json for new Windows Terminal
View profiles.json
{
"defaultProfile": "{09dc5eef-6840-4050-ae69-21e55e6a2e62}",
"initialRows": 30,
"initialCols": 120,
"alwaysShowTabs": true,
"showTerminalTitleInTitlebar": true,
"experimental_showTabsInTitlebar": true,
"profiles": [
{
"guid": "{09dc5eef-6840-4050-ae69-21e55e6a2e62}",
@mehulmpt
mehulmpt / script.sh
Created Nov 17, 2017
Find your page number in Google's Hall of Fame
View script.sh
i=1
name="Mehul" # CHANGE YOUR NAME HERE
while true
do
echo "Running $i"
content=$(wget https://bughunter.withgoogle.com/characterlist/$i -q -O -)
res=$(echo $content | grep -c $name)
if [ $res -eq 1 ]; then
echo "Found at page => $i"
You can’t perform that action at this time.