Skip to content

Instantly share code, notes, and snippets.

View paoloo's full-sized avatar

Paolo Oliveira paoloo

View GitHub Profile
@georgexsh
georgexsh / goto.py
Created September 18, 2017 07:47
python goto with system trace function
import sys
def j(lineno):
frame = sys._getframe().f_back
called_from = frame
def hook(frame, event, arg):
if event == 'line' and frame == called_from:
try:
frame.f_lineno = lineno
@ronanrodrigo
ronanrodrigo / cunsultaplaca.rb
Last active October 4, 2017 16:21
Consulta de informações básicas sobre veículos através da placa utilizando o sistema Sinesp Cidadão.
require "uri"
require "net/http"
require 'base64'
require 'cgi'
require 'openssl'
HOST_KEY = "shienshenlhq"
def search_plate plate
hmac = OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha1'), HOST_KEY.encode("ASCII"), plate.encode("ASCII"))
@putyoe
putyoe / placa.php
Last active October 6, 2020 10:59
Source - localização de placas - app [sinesp] em PHP
<?php
// Desenvolvido Para fins EDUCATIVOS.
// Criado em 12/11/2014
// Contato: putyoe@hotmail.com
$placa = '';
$request = '<?xml version="1.0" encoding="utf-8" standalone="yes" ?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ><soap:Header><dispositivo>GT-S1312L</dispositivo><nomeSO>Android</nomeSO><versaoAplicativo>1.1.1</versaoAplicativo><versaoSO>4.1.4</versaoSO><aplicativo>aplicativo</aplicativo><ip>177.206.169.90</ip><token>5021719229f7ddad0c786542da534ad0375f021f</token><latitude>-3.6770324</latitude><longitude>-38.6791411</longitude></soap:Header><soap:Body><webs:getStatus xmlns:webs="http://soap.ws.placa.service.sinesp.serpro.gov.br/"><placa>'.$placa.'</placa></webs:getStatus></soap:Body></soap:Envelope>';
$header = array(
"Content-type: application/x-www-form-urlencoded; charset=UTF-8",