Skip to content

Instantly share code, notes, and snippets.

View mehulmpt's full-sized avatar
🎶
Rollin'

Mehul Mohan mehulmpt

🎶
Rollin'
View GitHub Profile
;(function () {
if (!console) window.console = {}
var _assert = console.assert
var _dir = console.dir
var _log = console.log
var _info = console.info
var _error = console.error
var _warn = console.warn
var _clear = console.clear
const { exec } = require('child_process')
const fs = require('fs')
const stdin = `
3
5
10
15
`.trim()
const app = require('express')()
app.listen(1337)
@mehulmpt
mehulmpt / index.js
Last active April 22, 2022 13:14
Slow Loris attack using Node
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 December 11, 2021 09:58
Sample profiles.json for new Windows Terminal
{
"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 November 17, 2017 11:01
Find your page number in Google's Hall of Fame
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"