https://github.com/as3long/kcpjs https://github.com/hazae41/kcp https://www.npmjs.com/package/ham-kcpjs
$a = Get-VMSystemSwitchExtensionPortFeature -FeatureId 776e0ba7-94a1-41c8-8f28-951f524251b5
$a.SettingData.MonitorMode = 2
Add-VMSwitchExtensionPortFeature -ExternalPort –SwitchName "DefaultSwitch" -VMSwitchExtensionFeature $a
Also check Enable MAC address spoofing
in the VM's NIC settings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple Webshell</title> | |
<style> | |
body { | |
font-family: 'Consolas', monospace; | |
} | |
#commandInput { | |
display: block; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Specify the file path | |
file = 'D:\1.txt'; | |
count = 4; | |
length = 256; | |
% Open the file for reading | |
fid = fopen(file, 'r'); | |
% Read all lines from the file | |
data = textscan(fid, '%f', 'HeaderLines', 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-Type -TypeDefinition @" | |
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Threading; | |
public static class UDPForward | |
{ | |
public static void Main(string[] args) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get the "Remote Desktop - User Mode (TCP-In)" rule | |
$rule = Get-NetFirewallRule -DisplayName "Remote Desktop - User Mode (TCP-In)" | |
# Get the associated firewall filter | |
$filter = Get-NetFirewallAddressFilter -AssociatedNetFirewallRule $rule | |
# Set the private IPv4 and IPv6 ranges, including full loopback and link-local addresses, for the Remote Address | |
Set-NetFirewallAddressFilter -InputObject $filter -RemoteAddress "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "fc00::/7", "fd00::/8", "127.0.0.0/8", "169.254.0.0/16", "fe80::/10" | |
# Set the port to 3389 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To test this code, first create a new lambda with the AWS Cloudformation with the template below; | |
// Template URL: https://gist.github.com/rikka0w0/53a38add3c17e61744ff1806080e180d | |
// It not only handles the lambda creation, but also takes care of the required permissions. | |
// Then, create a Websocket service in the AWS API Gateway and point the $defsult handler to the lambda function we just created. | |
// Finally, replace the content of index.js of the lambda function with this file. | |
// Dont forget to DEPLOY it each time after you make changes. Test with 'wscat -c' | |
const AWS = require('aws-sdk'); | |
const stream = require('stream'); | |
const util = require('util'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: 2010-09-09 | |
Metadata: | |
'AWS::CloudFormation::Designer': | |
64bc413f-6802-42a9-a2f0-3f88801aef87: | |
size: | |
width: 60 | |
height: 60 | |
position: | |
x: 390 | |
'y': 110 |
sudo apt install libwebkit2gtk-4.0-37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mv /etc/ssh/sshd_config /etc/ssh/sshd_config.bak | |
apt install build-essential zlib1g-dev libssl-dev libpam0g-dev libselinux1-dev | |
wget -c http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.0p1.tar.gz | |
tar -xzf openssh-8.0p1.tar.gz | |
rm openssh-8.0p1.tar.gz | |
cd openssh-8.0p1 | |
./configure --with-md5-passwords --with-pam --with-selinux --with-privsep-path=/var/run/sshd/ --sysconfdir=/etc/ssh | |
make -j2 | |
make install |