This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# Desenvolvido por: Cable | |
import os, platform, locale, sys | |
try: | |
# Realização de imports não built-in | |
import string, re | |
from urllib.parse import urlparse | |
except: | |
os.system('sudo pip3 install -r requisitos.txt') | |
locale.setlocale(locale.LC_ALL, '') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# Agradecimentos a BiggsCoder | |
# Dev by: @vandalvnl | |
import sys, os, platform | |
class OS(): | |
sistema = platform.system() | |
hostname = platform.node() | |
def basename(stdin): | |
return Stdin.array2String(stdin).split('/')[-1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import sys | |
import os | |
import platform | |
class OS(): | |
sistema = platform.system() | |
hostname = platform.node() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set encoding=utf-8 | |
scriptencoding utf-8 | |
set fileencoding=utf-8 | |
set bomb | |
set binary | |
set ttyfast | |
set nocompatible " not compatible with the old-fashion vi mode | |
set bs=2 " allow backspacing over everything in insert mode | |
set history=50 " keep 50 lines of command line history |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"key": "ctrl+shift+m", | |
"command": "editor.action.insertSnippet", | |
"when": "editorTextFocus", | |
"args": { | |
"snippet": "Mussum Ipsum, cacilds vidis litro abertis. In elementis mé pra quem é amistosis quis leo. Em pé sem cair, deitado sem dormir, sentado sem cochilar e fazendo pose. Pra lá , depois divoltis porris, paradis. Cevadis im ampola pa arma uma pindureta." | |
} | |
}, | |
{ | |
"key": "ctrl+shift+p", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let net = require('net'); | |
let address, | |
os = require('os'), | |
ifaces = os.networkInterfaces(); | |
for (let dev in ifaces) { | |
let iface = ifaces[dev].filter(function(details) { | |
return details.family === 'IPv4' && details.internal === false; | |
}); | |
if (iface.length > 0) address = iface[0].address; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# This code don't capture the flag...Not Yet - Bugnario - Hackaflag 2017 | |
import itertools, socket | |
def bin_sequence(number): | |
return list(map(''.join, itertools.islice(itertools.product('01', repeat=len(bin(number)[2:])), 0, number))) | |
def sanitize_list(list_binaries): | |
return list(filter(lambda k: '11' in k, list_binaries)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const storage = StorageManage(); // Caso nada seja passado, será selecionado cookie | |
// StorageManage('c') || StorageManage('cookie') para trabalhar com cookies | |
// StorageManage('l') || StorageManage('localstorage') para trabalhar com LocalStorage | |
// StorageManage('s') || StorageManage('sessionstorage') para trabalhar com SessionStorage | |
let test = { | |
simples: 'Caso seja passado um objeto, StorageManager já transforma o objeto em String com JSON.stringify()', | |
verySimple: 'Caso tente recuperar um objeto, StorageManager já retorna o objeto com JSON.parse()' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import StorageManagerJS from 'storage-manager-js' | |
const storage = StorageManagerJS('cookie') | |
// Métodos como set, unset e clearAll retornam o próprio objeto | |
// assim você pode continuar operações, ou seja, FluentInterface | |
const objeto = storage.set('teste', { | |
id: 22, | |
nome: 'Objeto Teste', | |
contagem: [1,2,3,4,5,6,7,8,9], | |
objeto: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
public abstract class FilterURI { | |
private static final String numbers = "^[0-9]+$"; | |
private static final String uuid = "^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$"; | |
private static final String alphaNumber = "^[a-zA-Z0-9]+$"; | |
private static final String cpf = "^((\\d{3})(|\\.)){2}(\\d{3})(|-)\\d{2}$"; | |
private static final String cnpj = "^\\d{2}((|\\.)\\d{3}){2}(|\\/)\\d{4}(|-)\\d{2}$"; | |
private static String regex2String(String regex) { |
OlderNewer