Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jesusprubio's full-sized avatar
🏴‍☠️

Jesús Rubio jesusprubio

🏴‍☠️
View GitHub Profile
@jesusprubio
jesusprubio / gist:8f092af4ca252e252eab
Last active April 12, 2023 15:02
Proposal: A Node.js penetration test framework

Proposal: Node.js penetration test framework

Hi guys! Since I started to write Bluebox-ng I've been tracking the different security projects I found written in Node.js. Now we've published the first stable version we think it's the right moment to speak among us (and, of course, everyone interested in it :).

Why?

  • I think we're rewriting the same stuff in our respective projects again and again. For example, almost any tool supports IPv6 because the functions we need are still not present in the Node core and the libraries I found (IMHO) were not enough.
  • There're different projects implementing exactly the same thing, ie: port scanners.
  • We're working in a too new environment, so we need to make it together.
@jesusprubio
jesusprubio / gist:4066845
Last active March 15, 2023 11:47
Kamailio.cfg with SIP over websockets support included.NOTE: For GRUU support change (line 363): modparam("registrar", "gruu_enabled", 1)
#!KAMAILIO
#
# Kamailio (OpenSER) SIP Server v4.1 - default configuration script
# - web: http://www.kamailio.org
# - git: http://sip-router.org
#
# Direct your questions about this file to: <sr-users@lists.sip-router.org>
#
# Refer to the Core CookBook at http://www.kamailio.org/wiki/
# for an explanation of possible statements, functions and parameters.
@jesusprubio
jesusprubio / gist:4972767
Last active June 19, 2020 15:10
Wifi WEP cracking cheat sheet.
##
# Wifi WEP cracking cheat sheet.
#
# Original link: http://www.aircrack-ng.org/doku.php?id=how_to_crack_wep_with_no_clients
##
# monitor mode
airmon-ng start <IFACE>
'use strict';
const motivation = require('motivation');
/**
* StrapiPluginFortune.js controller
*
* @description: A set of functions called "actions" of the `strapi-plugin-fortune` plugin.
*/
'use strict';
const motivation = require('motivation');
module.exports = async () => {
const res = motivation.get();
strapi.log.info(`\n${res.text} (${res.author})\n`);
};
[package]
name = "online"
version = "0.2.0"
authors = ["Jesús Rubio <jesusprubio@gmail.com>"]
edition = "2018"
documentation = "https://docs.rs/online"
include = ["src/**/*", "Cargo.toml"]
description = "📶 Library to check your Internet connectivity"
repository = "https://github.com/jesusprubio/online.git"
readme = "README.md"
@jesusprubio
jesusprubio / gist:4972673
Last active October 20, 2019 09:02
Just another (very) simple "GNU/Linux router" script.
#!/bin/sh
# Just another (very) simple "GNU/Linux router" script.
#
# NOTE: We suposse two interfaces correclty connected and external
# interface is connected to Internet/other network at this point.
#
# Copyright (c) Jesús Pérez
# Licensed under GPLv3 - http://www.gnu.org/licenses/gpl-3.0.html
# Variables
// Get an user Facebook friends. It accepts an ETag parameter to avoid
// non-changed ones to be returned again.
// https://developers.facebook.com/docs/marketing-api/etags
const https = require('https');
// Credentials
const app_id = 'X';
const app_secret = 'Y';
@jesusprubio
jesusprubio / gist:5628075
Created May 22, 2013 14:44
Homer SIP Capture 3.5 kamailio.cfg file
#!KAMAILIO
#
# Example configuration file for a sipcapture node
#
####### Global Parameters #########
debug=5
log_stderror=no
memdbg=5
@jesusprubio
jesusprubio / gist:4972679
Created February 17, 2013 18:33
Apache Ruby script to interop between FreeSWITCH and Kamailio. (xmlcurl_sample.rb)
#!/usr/bin/env ruby
#
# 2012-03-2012 -- jesus.perez _at_ quobis _dot_ com
#
# Apache Ruby script to interop between FreeSWITCH and Kamailio.
# It uses Siremis database schema:
#
# mysql> use openser;
# Database changed
# mysql> desc subscriber;