Month: January 2022
Advanced Keylogger in Python
Important Disclaimer: The author will not be held responsible for the abuse of this program. This is only intended for educational purposes. How to use: Install Python version 3 on your computer from https://python.org. Make sure you install the pip package manager (it should be an option that the Python installer gives). Download the file and open it up in a text editor. Install all the necessary packages the program uses using Pip. You can find these packages at the […]
Read moreA simple Wordle puzzle solver in python
A simple search-based puzzle solver for Wordle, built in Python. Inspired by and tested using @adjusa’s clone, Hyperwordle. By default, this uses a small dictionary (~2,500 5-letter words), and can’t find solutions outside the given list. Youcan optionally switch to the complete English dictionary provided by @dwyl(~16k 5-letter words), which is more comprehensive than the dictionary used by official Wordle and related puzzles. Thismeans that while your chance of having the answer in the dictionary are high, you may be […]
Read morePython exploit code for CVE-2021-4034 (pwnkit)
Python3 code to exploitCVE-2021-4034(PWNKIT).This was an exercise in “can I make this work in Python?”, and not meantas a robust exploit. It Works For Me, there are problaby bugs. The default payload starts a shell as root, generated from msfvenom: msfvenom -p linux/x64/exec -f elf-so PrependSetuid=true | base64 I’ve tested linux/x64/shell_reverse_tcp as well. Make sure you includethe PrependSetuid=true argument to msfvenom, otherwise you’ll just geta shell as the user and not root. The code is cribbed from blasty, the orginal […]
Read moreA simple script to add application command support to discord.py v2.0
This is written by an official discord.py helper to try and stop people using third party forks or otherwise. If any help is required, please ping Maya#9000 in one of the help channels. To any other helpers reading this, this script is exempt from rule 14. Installation BEFORE ANYTHING You must install discord.py 2.0 from GitHub: pip install -U git+https://github.com/Rapptz/discord.py This script will NOT work without it. See this message for more information on discord.py 2.0 Go to the slash_util.py […]
Read moreLogin system made in Python, using native libraries
Sistema de login feito 100% em Python, utilizando bibliotecas nativas. Com uma simples “interface” de terminal. Recursos “Banco de Dados” Todos os dados de usuário e senha serão salvos no arquivo “registros.txt”(Futuramente pretendo implementar um banco de dados). “Interface” Terminal Calcula a largura do terminal e ajusta linhas e centraliza fontes(salva a medida no momento que o terminal roda a aplicação, as linhas não se redimensionam automaticamente). Ao selecionar opções inválidas a aplicação retorna uma mensagem de erro. Login Avisa […]
Read moreThorFI: A Novel Approach for Network Fault Injection as a Service
ThorFI: a Novel Approach for Network Fault Injection as a Service This repo includes ThorFI, a novel fault injection solution for virtual networks in cloud computing infrastructures. ThorFI is designed to provide non-intrusive fault injection capabilities for a cloud tenant, and to isolate injections from interfering with other tenants on the infrastructure. Currently, ThorFI supports OpenStack cloud management platform.ThorFI details are reported into the paper “ThorFI: a Novel Approach for Network Fault Injection as a Service” accepted for publication in […]
Read moreA little script for playing wordle
My goofy little script for playing wordle. It actually runs really slowly at first but once you’ve added some info (e.g. which letters are green, yellow, black) it goes much faster. The reason it’s slow at first is the heuristic is expensive (see below). There are two files: wordledict.py does nothing but load the list of winning words and possible words (these I just extracted from the Javascript on the site itself) find_cands.py uses the word lists to eliminate and […]
Read moreConvenient script to parse .bib files with the ACM Digital Library like metadata
Convenient script to parse .bib files with the ACM Digital Library like metadata. I had a few very large .bib files from a literature survey and I wanted to explore the tags and abstracts within those literature. The script does not do much else other than parse the bib items and represents them as Python dictionaries with some convenient query methods. Disclaimer: Use at your own risk. The author of this code does not take any liabilities for data loss […]
Read moreSAS: Self-Augmentation Strategy for Language Model Pre-training
This repository contains the official pytorch implementation for the paper “SAS: Self-Augmentation Strategy for Language Model Pre-training” based on Huggingface transformers version 4.3.0. Only the SAS without the disentangled attention mechanism is released for now. To be updated. File structure train.py: The file for pre-training. run_glue.py: The file for finetuning. models modeling_sas.py: The main algorithm for the SAS. trainer_sas.py: It is inherited from Huggingface transformers. It is mainly modified for data processing. utils: It includes all the utilities. data_collator_sas.py: It […]
Read more