Skip to content

Instantly share code, notes, and snippets.

import json
import requests
import hashlib
import time
from urllib import parse
from capture import Crack
from flask import Flask, escape, request,make_response
app = Flask(__name__,static_folder="static",static_url_path="")
def auth():
@Mr-xn
Mr-xn / arl_docker.md
Last active December 12, 2022 03:04
arl docker

docker 部署 arl 及其注意事项

安装 docker

这里选择安装 docker-ce 版本 根据不同的平台请参考官方教程

https://docs.docker.com/engine/install/

另外安装docker过程可能受国内网络环境影响会有点慢

@leveryd
leveryd / nfqueue_backdoor.md
Last active March 20, 2024 06:00
nfqueue_backdoor.c
// https://github.com/irontec/netfilter-nfqueue-samples/blob/master/sample-helloworld.c
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <netinet/in.h>
#include <linux/types.h>
#include <linux/netfilter.h>
#include <libnetfilter_queue/libnetfilter_queue.h>
@darkr4y
darkr4y / install.ps1
Last active December 5, 2023 14:16
CommandoVM **install.ps1** MOD
###########################################
#
# Installation Script
#
###########################################
param (
[string]$password = "",
[string]$pkg_url = $null,
[string]$pkg_file = ".\pkg.json",
[bool]$nochecks = $false
@0xsha
0xsha / CVE-2020-8515.go
Last active March 30, 2024 20:52
CVE-2020-8515: DrayTek pre-auth remote root RCE
package main
/*
CVE-2020-8515: DrayTek pre-auth remote root RCE
Mon Mar 30 2020 - 0xsha.io
Affected:
@deseven
deseven / MattermostUpload.sh
Last active February 25, 2025 06:36
Upload file to Mattermost (API v4)
#!/bin/bash
# your mattermost installation url
mattermost="https://example.com"
# bot token, get it in Integrations > Bot Accounts
token=abcdef123456
# set to true for debug output
debug=false
@xsephiroth
xsephiroth / CryptoJs & Golang
Last active April 10, 2025 02:11
AES decrypt encrypt with CryptoJs & Golang
<template>
<div>
</div>
</template>
<script>
import CryptoJs from "crypto-js"
export default {
name: "",
data(){
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active March 14, 2026 02:48 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@stibiumz
stibiumz / CIDR.php
Last active July 20, 2025 23:11 — forked from jonavon/CIDR.php
<?php
/**
* CIDR.php
*
* Utility Functions for IPv4 ip addresses.
* Supports PHP 5.3+ (32 & 64 bit)
* @author Jonavon Wilcox <jowilcox@vt.edu>
* @revision Carlos Guimarães <cvsguimaraes@gmail.com>
* @version Wed Mar 12 13:00:00 EDT 2014
*/
@jhass
jhass / dump_socket.sh
Last active June 11, 2024 13:15
Capture unix socket to pcap file with socat and tshark
#!/bin/bash
# Parameters
socket="/run/foo.sock"
dump="/tmp/capture.pcap"
# Extract repetition
port=9876
source_socket="$(dirname "${socket}")/$(basename "${socket}").orig"