Skip to content

Instantly share code, notes, and snippets.

View hui1601's full-sized avatar
😪
Sleepy…

Dong Heon Hee hui1601

😪
Sleepy…
View GitHub Profile
@hui1601
hui1601 / namupower.user.js
Last active April 7, 2025 01:23
namupower.user.js
// ==UserScript==
// @name NamuPower
// @namespace Violentmonkey Scripts
// @match https://namu.wiki/w/*
// @grant none
// @version 1.7
// @author -
// @description Removes advertisements from namu.wiki pages
// @run-at document-start
// ==/UserScript==
#include <arpa/inet.h>
#include <pcap.h>
#include <stdio.h>
#include <stdlib.h>
typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned int uint;
/* Ethernet header */
struct ethheader {
@hui1601
hui1601 / MouseToAndFroScript.java
Created October 31, 2023 01:56
MouseToAndFroScript.java
/* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software

use gatt

func (d *Device) IsQcyDevice() (bool, error) {
	// get manufacturer
	var manufacturer map[uint16]dbus.Variant
	busObj := d.client.conn.Object("org.bluez", dbus.ObjectPath(d.client.path+"/dev_"+utils.MacToPath(d.address)))
	err := busObj.Call("org.freedesktop.DBus.Properties.Get", 0, "org.bluez.Device1", "ManufacturerData").Store(&manufacturer)
	if err != nil {
 //println(err.Error())