Skip to content

Instantly share code, notes, and snippets.

View FFY00's full-sized avatar
🌈
struggling to live

Filipe Laíns 🇵🇸 FFY00

🌈
struggling to live
View GitHub Profile
@FFY00
FFY00 / hidpp-dissector.lua
Last active March 7, 2019 23:07
HID++ Dissector
-- Protocol
local hidpp_proto = Proto("hidpp", "Logitech HID++")
-- Symbols
local IF_CLASS_UNKNOWN = 0xFFFF
local HID = 0x0003
-- Definitions
-- Report
local REPORT_SHORT = 0x10
@FFY00
FFY00 / recursos.txt
Last active January 28, 2019 23:37
Algebra Linear - Recursos do Técnico
(APONTAMENTOS)
https://fenix.tecnico.ulisboa.pt/disciplinas/AL8/2013-2014/1-semestre/teoria
(VIDEOS)
MOOC Técnico: Valores Próprios – Introducao
https://www.youtube.com/watch?v=npPpVDfGGvU
@FFY00
FFY00 / util.c
Last active December 27, 2018 19:06
Remove newline C
/**
* @brief Removes newline from string. String will end in the first newline.
*/
void remove_newline(char str[MAX_STRING])
{
int i;
for(i = 0; i < MAX_STRING; i++)
{
if(str[i] == '\n')
{
@FFY00
FFY00 / screw_hole.scad
Last active December 7, 2018 18:09
Screw Hole module for OpenSCAD
module screw_hole(d = 3, height = 30, $fn = 80) {
hull() {
// Down small
translate([0, -height/2, 0])
sphere(d = d / 1.4, center = true, $fn = $fn);
// Up small
translate([0, height/2, 0])
sphere(d = d / 1.4, center = true, $fn = $fn);
@FFY00
FFY00 / nameplate.scad
Last active November 26, 2018 00:49
Unisolder Frontplate - IPLeiria Hardware CTF Team
/// Vars
// Plaque
width = 55;
height = 25;
round_radius = 5;
tickness = 2.5;
// Hole
hole_diameter = 3.2;
@FFY00
FFY00 / solve.py
Created October 21, 2018 23:05
Mainticore Test 2
#!/usr/bin/python
from manticore import Manticore
from manticore.models import strlen
m = Manticore('main-sec-pw')
buffer_addr=0
num_bytes=127
@FFY00
FFY00 / output.log
Created October 21, 2018 21:57
Manticore Test
2018-10-21 22:45:34,168: [15565] m.c.c.x86:WARNING: CPUID with EAX=80000000 not implemented @ 7ffffffcd26b
2018-10-21 22:45:34,374: [15565] m.c.executor:ERROR: Exception:
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/manticore/platforms/linux.py", line 2235, in execute
self.current.execute()
File "/usr/lib/python3.7/site-packages/manticore/core/cpu/abstractcpu.py", line 851, in execute
raise e
File "/usr/lib/python3.7/site-packages/manticore/core/cpu/abstractcpu.py", line 841, in execute
implementation(*insn.operands)
File "/usr/lib/python3.7/site-packages/manticore/core/cpu/abstractcpu.py", line 938, in new_method
@FFY00
FFY00 / config
Created September 16, 2018 19:24
Restore Gnome sessions in i3wm
# Restore GNOME's settings
exec --no-startup-id /usr/libexec/gnome-settings-daemon-localeexec
# Fix a bug in gnome-settings-daemon: http://feeding.cloud.geek.nz/posts/creating-a-modern-tiling-desktop-environment-using-i3/
exec --no-startup-id dconf write /org/gnome/settings-daemon/plugins/cursor/active false
@FFY00
FFY00 / timeout.txt
Created September 9, 2018 15:50
Change Hexchat timeout
/set net_ping_timeout <value (secs)>