Skip to content

Instantly share code, notes, and snippets.

View 6a6f6a6f's full-sized avatar

Jojo 6a6f6a6f

View GitHub Profile
@6a6f6a6f
6a6f6a6f / AsyncHttpClient.cs
Created January 18, 2020 22:17
Exemplo do emprego do HttpClient para operações assíncronas de I/O
// Consideramos que esse cara foi instanciado no construtor.
private readonly HttpClient _httpClient = new HttpClient();
someObject.SomeEvent += async (o, e) =>
{
// O thread responsável pela aticação do recurso
// fica disponível para fazer outra tarefa (yield).
var json = await _httpClient.GetStringAsync(someWebsite);
await doSomethingAsync(json);
};
@6a6f6a6f
6a6f6a6f / random.sh
Created January 22, 2020 12:53
Exemplo parsing de argumentos em shellscript
#!/bin/bash
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-e|--extension)
EXTENSION="$2"
@6a6f6a6f
6a6f6a6f / function.sh
Created February 11, 2020 13:16
Run Windows commands inside the WSL shell
#!/bin/bash
# or any shell and profile that you uses
function wssh () {
if [ -z "$1" ]
then
echo -e "\033[0;31mError:\033[0m Invalid argument supplied"
else
cmd.exe /c "$1"
fi
@6a6f6a6f
6a6f6a6f / base.md
Created February 29, 2020 20:08
Combo maroto para escrever os relatórios da Offensive Security e da eLeanSecurity sem usar o ~câncer~ do Word e/ou similares.

title: "Penetration Test Report" author: ["hacker@do.mal", "Name: r4f1x"] date: "2019-02-29" subject: "Markdown" keywords: [Markdown, Example] subtitle: "Web Application Extreme Penetration Tester" lang: "en" titlepage: true titlepage-color: "1E90FF"

@6a6f6a6f
6a6f6a6f / bypass.js
Created March 11, 2020 15:59
TrustManagerImpl bypass for com.mercadolibre (just a simple wrapper for verifyChain() method, works on any appication without SSL pinning)
setTimeout(function () {
Java.perform(function () {
console.log("\n[+] Android 7+ TrustManagerImpl bypass for com.mercadolibre");
console.log(" > Baiacus\n");
console.log("[+] (Baiacus) Loading TrustManagerImpl...");
try {
var trustManagerImpl = Java.use('com.android.org.conscrypt.TrustManagerImpl');
trustManagerImpl.verifyChain.implementation = function(untrustedChain, trustAnchorChain, host, clientAuth, ocspData, tlsSctData) {
@6a6f6a6f
6a6f6a6f / pimp_my_coordinates.cea
Created March 27, 2020 17:26
Minecraft coordinates AoB injection CEA script
[ENABLE]
aobscanmodule(INJECT,Minecraft.Windows.exe,41 89 86 BC 08 00 00)
alloc(newmem,$1000,"Minecraft.Windows.exe"+5D55A9)
alloc(_origin,4)
registersymbol(_origin)
label(code)
label(return)
private static void Main()
{
var list = new List<string>();
var tasks = new[]
{
Task.Factory.StartNew(() =>
{
WriteLine($"Thread #{Task.CurrentId} adding item...");
list.Add("foo");
#!/usr/bin/env bash
IMOVEL_ID=${1?[!] Cade o ID do imóvel jovem? }
if ! command -v curl &> /dev/null
then
echo "[!] Não encontrei seu CURL!"
exit
fi

Keybase proof

I hereby claim:

  • I am BizarreNULL on github.
  • I am bizarrenull (https://keybase.io/bizarrenull) on keybase.
  • I have a public key whose fingerprint is 30A1 5E68 94A4 E114 71CD 2130 E99B D205 2B8B 264A

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am 6a6f6a6f on github.
  • I am bizarrenull (https://keybase.io/bizarrenull) on keybase.
  • I have a public key ASDqB3wbbFYaRHTTTh_E9RzWggjwNvYL4oqyjOKFrso9Hgo

To claim this, I am signing this object: