Skip to content

Instantly share code, notes, and snippets.

View Mr-xn's full-sized avatar
☯️
混沌初开

东方有鱼名为咸 Mr-xn

☯️
混沌初开
View GitHub Profile
@Mr-xn
Mr-xn / shapeshifter.html
Created December 13, 2016 03:07 — forked from iblh/shapeshifter.html
Shape Shifter
<!DOCTYPE html>
<!-- saved from url=(0028)https://hacpai.com/halt.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>发现一个问题</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="https://hacpai.com/$%7BstaticServePath%7D/images/favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<style>
html {
@Mr-xn
Mr-xn / supervisord.sh
Created May 8, 2018 13:33 — forked from danmackinlay/supervisord.sh
an init.d script for supervisord
#! /bin/sh
### BEGIN INIT INFO
# Provides: supervisord
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
@Mr-xn
Mr-xn / find_hide_svc.ps1
Created October 23, 2020 10:47
find_hide_svc.ps1
Compare-Object -ReferenceObject `
(Get-Service | Select-Object -ExpandProperty Name |
% { $_ -replace "_[0-9a-f]{2,8}$" })`
-DifferenceObject (gci -path hklm:\system\currentcontrolset\services |
% { $_.Name -Replace "HKEY_LOCAL_MACHINE\\","HKLM:\" } |
? { Get-ItemProperty -Path "$_" -name objectname -erroraction 'ignore' } |
% { $_.substring(40) }) -PassThru | ?{$_.sideIndicator -eq "=>"}
@Mr-xn
Mr-xn / macro.php
Created July 4, 2021 06:54 — forked from digininja/macro.php
Sample code to go with the Burp Macro blog post at https://digi.ninja/blog/burp_macros.php
<?php
session_start();
$message = "";
if ($_SERVER['REQUEST_METHOD'] == "POST") {
if (array_key_exists ("token", $_POST) && array_key_exists ("token", $_SESSION)) {
if (array_key_exists ("token", $_SESSION)) {
if ($_POST['token'] == $_SESSION['token']) {
$message = "Success";
@Mr-xn
Mr-xn / net_tools.md
Last active May 12, 2022 13:30
与网络有关的工具
@Mr-xn
Mr-xn / scan-host-alive.py
Last active May 13, 2022 16:54
scan alive host by python3
from scapy.all import *
import ipaddress
import argparse
# from https://npfs06.top/
# need install scapy:
# pip isntall scapy
def icmp_request(ip_dst):
global a # call a
@Mr-xn
Mr-xn / OpenWRT折腾日记-设置成交换机&AP模式.md
Last active June 23, 2024 03:52
OpenWRT折腾日记-设置成交换机/AP模式

将 OpenWrt 设置为交换机 / AP 模式 :https://www.moewah.com/archives/4977.html | https://archive.ph/zoncl | https://web.archive.org/web/20220930113530/https://www.moewah.com/archives/4977.html

能够将路由器当无线AP使,同时有线网口作为交换机使用

特点:不需要创建新网段,只是相当于在主路由器下接了一个“具有特别功能”的交换机

设置步骤1.设置Openwrt连接路由器的LAN口地址为静态(方便管理)

1.删除所有的接口,保留LAN口就可以

@Mr-xn
Mr-xn / get_real_ip.html
Last active September 8, 2022 06:26
WebRTC
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Get Real IP</title>
</head>
<h3>你的代理IP是:<div id=1></div></h3>
<h3>你的真实IP是:<div id=2></div></h3>
<script>
@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过程可能受国内网络环境影响会有点慢