Skip to content

Instantly share code, notes, and snippets.


Nemo captn3m0

View GitHub Profile
captn3m0 / index.html
Created Jun 16, 2012 — forked from demonslayer68/Injection
a simple guide to injection attacks
View index.html
<form action='submit.php' method='get'>
Enter your name : <input type='text' name='name' /><br />
<input type='submit' value='Submit' />
captn3m0 / index.mkd
Created Jun 18, 2012
Browsing the web without Javascript and Images
View index.mkd

The only connection available to me right now is a limited 3g connection, which I try not to squander over huge images/media on the internet. My browser is chromium, on linux, and I tend to use Opera 11 (turbo mode) frequently as well.

Just as an experiment, I disabled images & javascript from my browser a few weeks back. What all have I got?

  • Faster pages (I use occasionally to search)
  • Broken websites ( which don't run on disabling javascript at all)
  • Broken navigation ( due to images being used as links. And since chrome does not display <alt> tags properly, it breaks)
  • Reduced Functionality (Gmail refuses to load chat if images are disabled)

Other than the normal chrome content blocking, I also went ahead and installed ghostery addon. It blocks all advertising, and social media junk (no more sharing). However, it is only useful on the occasional sites I have enabled javascript on.

captn3m0 /
Created Aug 29, 2012
Stripe Level 8 Solution

The basic solver I made for the level8. I had to manually edit the file after each chunk, but I was too lazy to implement the chunk loop. Thanks to Bubba on IRC for recommending me to use httplib2 instead of httplib, it took down the jitter by quite a lot.

Python is not my first language, and I would never again use it for such a thing (unless I learn it better). I was trying with ruby, but didn't get the patterns then. I had a semi-working script in python before I learnt better.

The source is here if you are browsing this on

##Logic I didn't get the increment-by-chunk-number thing, and I was using an average of the port difference between last two requests. The average was 2 for most of my requests. For all the positives, the difference was above the average, which I used. I only ran this once for capturing the flag, when it took me about 5-8 minutes to capture the flag. This was on the last day of the ctf with about 15 hours remaining.

While run

captn3m0 /
Created Sep 2, 2012
My Backup Plan

This is the backup plan I'm using for my newly-won 1 TB HDD (Thanks Yahoo!).


On the Internal HDD (320GB)

  • 50GB / (primary OS) (ext4)
  • 220 GB /home (ext4)
captn3m0 /
Created Sep 16, 2012
Dominos Slot Machine Player
#Play a single round on to get your session_id
until php test_result.php; do
curl -s -H "X-Requested-With:XMLHttpRequest" -X POST -d "session_id=$1" -o result.json
captn3m0 / stylish.css
Created Oct 8, 2012
Fix fonts in linux
View stylish.css
font-family: "Seogue UI","Ubuntu","Droid Sans","Helvetica" !important;
.Snippet, .ExternalClass{
font-family: "Seogue UI","Ubuntu","Droid Sans","Helvetica" !important;
/** uses calibri, which might be missing, and even if present, faces lots of rendering problems
* This fixes it by replacing it with Segoe UI & the rest of stack
captn3m0 / youtube.luac
Created Dec 7, 2012
Nightly youtube.luac for VLC Player
View youtube.luac
Copyright © 2007-2012 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
captn3m0 / 00-port-list.txt
Last active Dec 16, 2015
List of outgoing ports opened in the IIT-R campus
View 00-port-list.txt
captn3m0 / jquery.jsonCache.js
Created Sep 1, 2013
JQuery JSON fetch function with cache support ($.getJSONCache)
View jquery.jsonCache.js
* Uses localStorage for cache and if misses
* uses getJSON to get content
data = data || {}
var key = url + '?' + $.param(data);
var value = localStorage.getItem(key);
captn3m0 /
Created Nov 24, 2013
Headless web browsers. Copied over from (now deleted)

Here are a list of headless browsers that I know about:

  • HtmlUnit - Java. Custom browser engine. JavaScript support/DOM emulated. Open source.
  • Ghost - Python only. WebKit-based. Full JavaScript support. Open source.
  • Twill - Python/command line. Custom browser engine. No JavaScript. Open source.
  • PhantomJS - Command line/all platforms. WebKit-based. Full JavaScript support. Open source.
  • Awesomium - C++/.Net/all platforms. Chromium-based. Full JavaScript support. Commercial/free.
  • SimpleBrowser - .Net 4/C#. Custom browser engine. No JavaScript support. Open source.
  • ZombieJS - Node.js. Custom browser engine. JavaScript support/emulated DOM. Open source.
  • EnvJS - JavaScript via Java/Rhino. Custom browser engine. JavaScript support/emulated DOM. Open source.