Skip to content

Instantly share code, notes, and snippets.

View ezra100's full-sized avatar

Ezra Steinmetz ezra100

  • Jerusalem, Israel
View GitHub Profile
@ezra100
ezra100 / A.steps.md
Last active January 21, 2023 23:03
How to create CLD-3 libraries to use in your own project

How to create an independent shared library of cld-3

If you wanna use cld-3 in your project but don't want to keep depending on Ninja/gn build system then here's how I did it - on Linux (Arch 4.16.13-1) and g++.

Disclaimer:

I'm not an expert on this topic, this is just how I (finally) managed to do it, not necessarily the best way to do it (esp. with the STD compatibility). if you have any suggestions about how to do it better let me know.

Static vs Shared Library

The benefit of a shared library is that you can copy it for wherever you want and use if from there, as for the static - I found out you can't move it, unless you move the whole out/Debug folder (or maybe just the out/Debug/obj folder, I'm not quite sure). There might be some differences in the performence, but they say it isn't significant.

Steps to create a shared/static library

Linux RAM monitor service

Just a little service I've created to notify when the ram usage is close to it's limits.

To run it just download the files, edit the path in the service file, and then run the following commands:

systemctl --user link /path/to/ram-monitor.service
systemctl --user enable --now ram-monitor.service

@ezra100
ezra100 / !README.md
Last active February 9, 2022 13:07
Python Brute-Force with Multiple Threads

Python Brute-Force with Multiple Threads

Below there's a sample code of how to run a brute force with multiple thread in python.

Content

  • brute.py - the main code, change url, headers, data, etc. depending on the target
  • server.py - a demo login-server
  • demo.log - output of the demo (running brute.py while server.py is running)
  • z.names and z.passwords the username and passwords lists used for the demo (starting with z for gist file order)