Skip to content

Instantly share code, notes, and snippets.

View martonmiklos's full-sized avatar

Miklós Márton martonmiklos

View GitHub Profile
@martonmiklos
martonmiklos / parser.py
Created May 31, 2017 21:08
usb hid joy packet parser
from pcapng import FileScanner
from pcapng.blocks import EnhancedPacket
import array
with open('wiresharklog-kihuzos.pcapng') as fp:
#with open('wiresharklog-bedugeselindit.pcapng') as fp:
scanner = FileScanner(fp)
for block in scanner:
if isinstance(block, EnhancedPacket):
if (len(block.packet_data) == 101) :
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- ******************************************************************************
* File Name : pocs.gpdsc
* Date : 07/06/2017 16:55:53
* Description : Generator PDSC File generated by STM32CubeMX (DO NOT EDIT!)
****************************************************************************** -->
<package xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="1.4" xs:noNamespaceSchemaLocation="PACK.xsd">
<vendor>STMicroelectronics</vendor>
<name>pocs</name>
14:58:24: Running steps for project qtconnectivity...
14:58:24: Starting: "/home/mm/.config/SailfishOS-SDK/mer-sdk-tools/MerSDK/SailfishOS-armv7hl/qmake" /home/mm/Projektek/jolla/qtconnectivity-opensource-src-5.4.2/qtconnectivity.pro -r -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug
Info: creating cache file /home/mersdk/share/Projektek/jolla/build-qtconnectivity-MerSDK_SailfishOS_armv7hl-Debug/.qmake.cache
Checking for bluez... no
Checking for bluez_le... no
Checking for btapi10_2_1... no
Checking for libbb2... no
Reading /home/mersdk/share/Projektek/jolla/qtconnectivity-opensource-src-5.4.2/src/src.pro [/home/mersdk/share/Projektek/jolla/build-qtconnectivity-MerSDK_SailfishOS_armv7hl-Debug/src]
@martonmiklos
martonmiklos / gist:d44e2c5f03f83f800f269353fe256f11
Created October 3, 2018 08:31
StLinkV3 lsusb verbose output
Bus 001 Device 031: ID 0483:374f STMicroelectronics
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2 ?
bDeviceProtocol 1 Interface Association
bMaxPacketSize0 64
@martonmiklos
martonmiklos / gist:5813bfc6ef2d8f6dcef76d0e5d578f50
Created May 8, 2019 20:49
HSAGRAccess.dll password encoding
User @
2fc5dda8fad63ef2
207a5ecc8913d5e2
User @@
0c6e3f3b8a552084
207a5ecc8913d5e2
User @@@
cebc1ac658d20457
207a5ecc8913d5e2
User @@@@
@martonmiklos
martonmiklos / gist:6e495ee1b7cb8a2c8ecc3d47d203fb65
Created September 19, 2019 09:56
Foxeer Box2 NMAP output
Starting Nmap 7.70 ( https://nmap.org ) at 2019-09-19 11:54 CEST
NSE: Loaded 148 scripts for scanning.
NSE: Script Pre-scanning.
Initiating NSE at 11:54
Completed NSE at 11:54, 0.00s elapsed
Initiating NSE at 11:54
Completed NSE at 11:54, 0.00s elapsed
Initiating Ping Scan at 11:54
Scanning 192.168.0.1 [2 ports]
Completed Ping Scan at 11:54, 0.01s elapsed (1 total hosts)
@martonmiklos
martonmiklos / gist:5a781c464c160ff5d0dc2482b42392d2
Created September 20, 2019 07:01
Dell Precision 7530 lspci -vvv
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
Subsystem: Dell 8th Gen Core Processor Host Bridge/DRAM Registers
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
Latency: 0
Capabilities: [e0] Vendor Specific Information: Len=10 <?>
Kernel driver in use: skl_uncore
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
HiBoot 1.1.1.7 (Jan 8 2010 - 16:24:48)
HiBoot code: 30500000 -> 30519F00 BSS: -> 30550468
RAM Configuration:
Bank #0: 30000000 64 MB
Flash: 16 MB
In: serial
Out: serial
Err: serial
MAC: 00-00-00-00-00-02
22:20:38: Debugging starts
&"warning: GDB: Failed to set controlling terminal: Helytelen ioctl h\303\255v\303\241s az eszk\303\266znek\n"
Installing the delayed initialization callback.
Delayed initialization.
Reloading the khotkeys configuration
Version 2 File!
true
Imported file "/usr/share/khotkeys/spectacle.khotkeys"
Imported file "/usr/share/khotkeys/defaults.khotkeys"
"KConfigIni: In file /usr/share/khotkeys/konqueror_gestures_kde321.khotkeys, line 882: " "Invalid escape sequence \"\\M\"."
@martonmiklos
martonmiklos / gist:c15b6808a76de987fbbdb97434028eec
Created February 1, 2020 10:28
HE tuning greasemonkey szkript
// ==UserScript==
// @name HE tuning greasemonkey szkript
// @version 1
// @grant none
// @include https://www.hobbielektronika.hu/apro/apro_mod.php?id=new
// @include https://www.hobbielektronika.hu/apro/
// @include https://www.hobbielektronika.hu/apro
// ==/UserScript==
// mainly sellin used shit