Skip to content

Instantly share code, notes, and snippets.

View tbhaxor's full-sized avatar
👨‍🚀
Exploring nature beyond Kármán line

Gurkirat Singh tbhaxor

👨‍🚀
Exploring nature beyond Kármán line
View GitHub Profile
@tbhaxor
tbhaxor / bandit.txt
Last active May 31, 2018 06:46
Over The Wire Level Wise Bandit Solutions
boJ9jbbUNNfktd78OOpsqOltutMc3MY1
CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9
UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK
pIwrPrtPN36QITSp3EQaw936yaFoFgAB
koReBOKuIDDepwhWk7jZC0RTdopnAYKh
DXjZPULLxYr17uwoI01bNLQbtFemEgo7
HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs
cvX2JJa4CFALtqS87jk27qwqGhBM9plV
UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR
truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk
@tbhaxor
tbhaxor / natas.txt
Created January 5, 2018 17:33
Over The Wire Level Wise Natas Password
gtVrDuiDfck831PqWsLEZy5gyDz1clto
ZluruAthQk7Q2MqmDeTiUij2ZvWy2mBi
sJIJNW6ucpu6HPZ1ZAchaDtwd7oGrD14
@tbhaxor
tbhaxor / .bashrc
Last active June 6, 2018 07:57
Parrot OS Like Terminal
#
# ~/.bashrc
#
# git branch parser
parse_git_branch() {
echo -e "\033[1;34m$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/')\033[0m"
}
@tbhaxor
tbhaxor / sort.swift
Created June 19, 2018 11:10
merge sort
import Foundation
func sort(_ arr1: [Int], _ arr2: [Int]) -> [Int] {
var c = Array<Int>()
var arr1 = arr1
var arr2 = arr2
let c1 = arr1.count
let c2 = arr2.count
if c1 > c2 {
for _ in 0..<c2 {
@tbhaxor
tbhaxor / file.html
Created July 23, 2018 21:25
freecodecamp
<style>
* {
outline: none;
}
body {
text-align: center;
background-color: #a9d7d1;
}
@tbhaxor
tbhaxor / ard.ino
Created August 10, 2018 23:24
arduino
#include <SoftwareSerial.h>
SoftwareSerial esp8266(8,9); //Pin 2 & 3 of Arduino as RX and TX. Connect TX and RX of ESP8266 respectively.
#define DEBUG true
#define led_pin 13 //LED is connected to Pin 11 of Arduino
void setup()
{
pinMode(led_pin, OUTPUT);
digitalWrite(led_pin, LOW);
@tbhaxor
tbhaxor / serve.py
Last active July 14, 2019 03:40
Serving VUE Js Build directory using python and flask
"""
before execution
1. build vue app - npm run build
2. install dependencies - pip install flask flask-cors
running the server
python serve.py
your site will be live on http://localhost:8000
@tbhaxor
tbhaxor / tiny.php
Created November 9, 2018 03:46
Tinyurl Clean and custom alias maker
<?php
/*
How to execute : php tiny.php
This will help you in generating readable custom alias with enumration (if already registered)
*/
function getURL($url, $sh)
{
@tbhaxor
tbhaxor / led-controller.ino
Created December 21, 2018 23:43
Controll LED With Button and Show on LCD
#include <LiquidCrystal.h>
// lcd pin config
LiquidCrystal lcd(2, 3, 4, 5, 6, 7);
int selected = -1;
int high = 0;
String colors[] = {"Red", "Green", "Blue"};
void setup()
{
@tbhaxor
tbhaxor / exp.c
Created February 1, 2019 13:46
root
//
// This exploit uses the pokemon exploit of the dirtycow vulnerability
// as a base and automatically generates a new passwd line.
// The user will be prompted for the new password when the binary is run.
// The original /etc/passwd file is then backed up to /tmp/passwd.bak
// and overwrites the root account with the generated line.
// After running the exploit you should be able to login with the newly
// created user.
//
// To use this exploit modify the user values according to your needs.