Skip to content

Instantly share code, notes, and snippets.

View akshatmittal's full-sized avatar

Akshat Mittal akshatmittal

View GitHub Profile
@akshatmittal
akshatmittal / A README.md
Last active September 19, 2015 11:18
Crash Google Chrome instantly. Proof-of-concept code.
@akshatmittal
akshatmittal / inject.js
Created November 23, 2014 11:57
Inject jQuery to any page
javascript:(function () { var el = document.createElement("div"), b = document.getElementsByTagName("body")[0], otherlib = !1, msg = ""; el.style.position = "fixed", el.style.height = "32px", el.style.width = "220px", el.style.marginLeft = "-110px", el.style.top = "0", el.style.left = "50%", el.style.padding = "5px 10px", el.style.zIndex = 1001, el.style.fontSize = "12px", el.style.color = "#222", el.style.backgroundColor = "#f99", el.style.zIndex = "99999999999999999999999999999999999"; function showMsg() { var txt = document.createTextNode(msg); el.appendChild(txt), b.appendChild(el), window.setTimeout(function () { txt = null, typeof jQuery == "undefined" ? b.removeChild(el) : (jQuery(el).fadeOut("slow", function () { jQuery(this).remove() }), otherlib && (window.$jq = jQuery.noConflict())) }, 2500) } if (typeof jQuery != "undefined") return msg = "This page already using jQuery v" + jQuery.fn.jquery, showMsg(); typeof $ == "function" && (otherlib = !0); function getScript(url, success) { var script = docu
@akshatmittal
akshatmittal / main.js
Last active January 15, 2021 06:08
Javascript Hack to book Xiaomi Mi3 on Flipkart easily.
/* Author: Akshat Mittal
** Link: http://fb.me/itsreallyakshat
** Website: http://akshatmittal.github.io/
**
** Copy paste the complete contents of this file in Chrome Console. Use Ctrl + Shift + J to open it.
** Execute on this page ONLY: http://goo.gl/bfPjeU
**
** Do this just about 3-5 min before the Sale begins, on Mi3 page: http://goo.gl/bfPjeU
** The script will try to book an Mi3 for you every second and will alert when successful.
**
@akshatmittal
akshatmittal / heartbleed.py
Created April 9, 2014 14:51
Heartbleed Python 3 Implementation
#
# Usage: python heartbleed.py <host>
#
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
@akshatmittal
akshatmittal / script.js
Created March 12, 2014 10:11
Console Disable JS
(function () {
var _z = console;
Object.defineProperty(window, "console", {
get: function () {
if (_z._commandLineAPI) {
throw undefined;
}
return _z;
},
set: function (val) {
@akshatmittal
akshatmittal / help.txt
Last active July 7, 2016 03:40
Facebook Look Back video extractor.
Hey there,
Use the main.js to download your video, instructions included in that file.
(File is here on this page itself, either above or below this)
If in case, Facebook didn't made a video for you, read this:
http://on.fb.me/LookBackNoVideo
If you got your video once, and you deleted a timeline post (or anything else)
which made the video disappear from the page, you can still retrieve the
file from your browser cache.