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 / col.c
Created April 19, 2019 05:48
pwnable.kr ctf
#include <stdio.h>
#include <string.h>
unsigned long hashcode = 0x21DD09EC;
unsigned long check_password(const char* p){
int* ip = (int*)p;
int i;
int res=0;
for(i=0; i<5; i++){
res += ip[i];
}
@tbhaxor
tbhaxor / radare.md
Created April 27, 2019 19:07
Radare 2 Cheat Sheet

Radare2

Command line options

-L: List of supported IO plugins
-q: Exit after processing commands
-w: Write mode enabled
-i [file]: Interprets a r2 script
-A: Analyze executable at load time (xrefs, etc)
-n: Bare load. Do not load executable info as the entrypoint
@tbhaxor
tbhaxor / Vagrantfile
Created May 4, 2019 16:50
Vagrant File for Configuring Webservers
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@tbhaxor
tbhaxor / async_as_sync.html
Created May 6, 2019 16:55
Running async code synchronously
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Running Async code Synchronously</title>
</head>
<body>
<script>
@tbhaxor
tbhaxor / Mongoose_Overview.ipynb
Last active October 14, 2019 11:49
Introduction to mongoose
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tbhaxor
tbhaxor / Linear Search.ipynb
Created May 9, 2019 20:49
Linear search explained
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tbhaxor
tbhaxor / Selection Sort.ipynb
Created May 9, 2019 20:51
Selection sort explained
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tbhaxor
tbhaxor / Introduction_CPP.ipynb
Created May 10, 2019 19:57
Introduction to C++
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tbhaxor
tbhaxor / DataTypes and Variables in C++.ipynb
Created May 10, 2019 20:31
About datatypes and variables in c++
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tbhaxor
tbhaxor / Compound Data Types.ipynb
Created May 11, 2019 15:13
User defined datatypes in C++
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.