Skip to content

Instantly share code, notes, and snippets.

View Franco-Poveda's full-sized avatar

Pogui Franco-Poveda

  • Mendoza, Argentina
View GitHub Profile
@Franco-Poveda
Franco-Poveda / movieScraper.js
Created January 14, 2016 14:36
Sample scraper using cheerio.js to get the next movies premiere from Cinemark Argentina, and send a PUSH campaign using the ViaCelular API every Wednesday.
var request = require('request');
var cheerio = require('cheerio');
var schedule = require('node-schedule');
var trim = require('trim');
var names =[],
dates =[];
j = schedule.scheduleJob('0 20 * * 4', function(){
request('http://www.cinemark.com.ar/ajaxCartelera.aspx?filter=Proximos', function (error, response, html) {
@Franco-Poveda
Franco-Poveda / index.html
Last active January 14, 2016 11:12
node.js reverse shell over HTTP proof of concept, using socket.io
<!doctype html>
<html>
<head>
<title>Socket.IO shell</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font: 13px Helvetica, Arial; }
form { background: #000; padding: 3px; position: fixed; bottom: 0; width: 100%; }
form input { border: 0; padding: 10px; width: 90%; margin-right: .5%; }
form button { width: 9%; background: rgb(130, 224, 255); border: none; padding: 10px; }
@Franco-Poveda
Franco-Poveda / commandOverHttp.js
Created January 14, 2016 10:52
Simple script to execute a bash command via a http request just using the node native functions
/*
* Listen incommig HTTP connection to '/'
* and executes a arbitrary command to
* the host stdout.
*
* Pogui (2016)
* poguijuaz [at] gmail
*/
var http = require('http'),
@Franco-Poveda
Franco-Poveda / logioTailHarvester.js
Created January 14, 2016 10:23
log.io custom plain text log file harvester using tail and the TCP interface
/*
* pogui (14/1/16)
* poguijuaz [at] gmail
* install:
* $npm install tail
*
*/
var net = require('net');
Tail = require('tail').Tail;