List Less Than Ten with python

Take a list, say for example this one: a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] and write a program that prints out all the elements of the list that are less than 5. Extras: Instead of printing the elements one by one, make a new list that has all the elements less than 5 from this list in it and print out this new list. Write this in one line of Python. Ask the […]

Read more

Car list cli app with python

To run this script git clone https://github.com/ArieTwigt/rdwcli.git Create virtual environment: virtualenv venv –python=python3 Activate virtualenv: venvScriptsactivate (Windows) source venv/bin/activate (OSC) Install required pacakges pip install -r requirements.txt Run the script python main.py GitHub View Github    

Read more

An experimental script to perform bulk parsing of arbitrary file features with YARA and console logging

This script is named after Ronnie Coleman, and peforms bulk lifts on arbitary file features using YARA console logging. Requirements Notes This was really designed for me to bulk build an on-demand table for file features I wanted, and to see the values I specified using YARA’s own technology. This allows me to quickly view, stack, organize the “surface area” of a file so I can turn around with the ones I want and create YARA rules. This is a […]

Read more

Python script to organize messy directories

Organize and manage messy directories 🧹 To run the script the script runs with a json file. Inside the json file you can specify the configurations to organize the directory. # config.json { “directory” : { “path”: [“path of directory to organize ex: C:Userstmpts21Desktop”] }, “automate” : [ { “type” : “IMAGES”    

Read more

Python script to telnet into a draytek router and provide the stats for Prometheus

I had a lot of line trouble lately. I knew the router provided the stats but it doesn’t do anything with them. I wanted to visually check the line stats and be able to look as the history of the line.Prometheus and Grafana seemed the best idea as i had these already in use watching my docker container stats. A python script to read the detailed DrayTek router stats. The following stats are recorded and presented as Open Metrics (Prometheus) […]

Read more

Cobalt strike CNA script to notify you via Discord whenever there is a new beacon

Cobalt strike CNA script to notify you via Discord whenever there is a new beacon. Make sure you have python3 installed Steps: Create a Discord Server and get a Webhook URL (Server settings > Integration > Webhooks > Create/New_Webhooks > Copy Webhook URL) Paste the URL in request.py Edit the path of request.py in notify.cna Edit the message as you want (Optional) Run the cna as following: ./agscript [C2 IP] [C2 Port] [user name] [C2 password] [path to cna] Reference: […]

Read more

GBSLocalLauncher – A script to compose ENV file for Local Compose

This is a script to compose ENV file for Local Compose.It creates config file where key is Local name and value consist with repository’s name + tag name. prerequisite: 1)Install or update AWS CLIhttps://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html 2)Set up your profilehttps://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html 3)Update your Python to the latest version.Relaese under 3.10 is not appropriate! How to run on mac? https://support.apple.com/en-gb/guide/terminal/apdd100908f-06b3-4e63-8a87-32e71241bab4/macRun Terminalcd YourScriptDirectorychmod 755 GridOfTags.commandExit Terminal Double click GridOfTags.command GitHub View Github    

Read more

A 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 more
1 3 4 5 6 7 18