Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# Boofuzz is a fork of and the successor to the venerable Sulley fuzzing framework.
# Besides numerous bug fixes, boofuzz aims for extensibility. The goal: fuzz everything.
# Github: https://github.com/jtpereyda/boofuzz
# Docs: http://boofuzz.readthedocs.io/en/latest/
# PDF: https://buildmedia.readthedocs.org/media/pdf/boofuzz/latest/boofuzz.pdf
#
# This project uses virtualenv to manage all dependencies. To properly install this project, run the following commands:
#
@SamsungGalaxyPlayer
SamsungGalaxyPlayer / protonvpn_exit_ips.py
Created July 25, 2023 19:45
Get all Proton VPN IP addresses and export them into a CSV file
import requests
import csv
response_data = requests.get('https://api.protonmail.ch/vpn/logicals')
response_json = response_data.json()
ip_list = []
for server in response_json['LogicalServers']:

Fuzzing CDT: Finding, reproducing, and reporting bugs

Introduction

This is a tutorial on how to write a fuzzer for a non-trivial real-world library, namely Artem Amirkhanov's CDT. It is a library for computing Constrained Delaunay Triangulations (CDTs, hence the name of the library). We will be working from the 9d99b32ae56b26cd2781678dc4405c98b8679a9f commit, since that is what I originally wrote the fuzzer for, and that way, we will be able to rediscover the same bugs I found back then.

If you want to follow along, clone the library using

$ git clone https://github.com/artem-ogre/CDT
$ cd CDT
@thomasnield
thomasnield / calling_kotlin_from_python.py
Created June 2, 2018 23:09
Calling Kotlin from Python
os.system("kotlinc src/main/kotlin/Launcher.kt -include-runtime -d launcher.jar")
process = Popen(['java', '-jar', 'launcher.jar', tmp_file_name], stdout=PIPE)
(stdout, stderr) = process.communicate()
@namhyun-gu
namhyun-gu / extract_font_url.js
Last active April 20, 2024 10:27
Extract font url from css (in javascript)
const regex = /url\((.*?)\) format\((\'|\")(.*?)(\'|\")\)/g;
const str = `CSS Input`;
let m;
while ((m = regex.exec(str)) !== null) {
// This is necessary to avoid infinite loops with zero-width matches
if (m.index === regex.lastIndex) {
regex.lastIndex++;
}
@AlexVipond
AlexVipond / README.md
Last active April 20, 2024 10:23
Updating arrays of elements with function refs in Vue 3

Updating arrays of elements with function refs in Vue 3

I did a screencast series recently talking about my favorite Vue 3 feature: function refs. Check out the screencast series for more context-in this gist, I'm going to answer a fantastic question I got in one of the videos' comment section.

This question was about how to properly update arrays of elements that are captured by function refs. Let's check out the basic principle first, before we look at the details of the question.

<script setup>
import { ref, onBeforeUpdate } from 'vue'
@jtmoon79
jtmoon79 / python-embedded-for-Win10.md
Last active April 20, 2024 10:23
fully configuring embedded Python on Windows 10

Update: use PowerShell script PythonEmbed4Win.ps1.

The instructions in this gist have some subtle problems and this gist will not be updated.

About


@fearrr
fearrr / phone_regexp.md
Last active April 20, 2024 10:21
Регулярное выражение для мобильных и городских номеров России и СНГ

Регулярное выражение для мобильных и городских номеров России и СНГ

Страны:

  • Армения (+374),
  • Азербайджан (+994)
  • Грузия (+995)
  • Беларусь (+375)
  • Россия/Казахстан (+7)
  • Украина (+380, +38)
@straker
straker / README.md
Last active April 20, 2024 10:20
Basic Snake HTML and JavaScript Game

Basic Snake HTML and JavaScript Game

Snake is a fun game to make as it doesn't require a lot of code (less than 100 lines with all comments removed). This is a basic implementation of the snake game, but it's missing a few things intentionally and they're left as further exploration for the reader.

Further Exploration

  • Score
  • When the snake eats an apple, the score should increase by one. Use context.fillText() to display the score to the screen
@JonathanMaes
JonathanMaes / terminator.py
Last active April 20, 2024 10:17
Terminator boundary calculator (and plotting)
""" This script implements a class for calculating the Earth terminator.
Additional functionality for calculating the boundary of the various
twilight types and plotting these areas on a 2D map are also provided.
--------------------------------------------------------------------------
Copyright (C) 2023 Jonathan Maes
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.