This file contains 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
package main | |
import ( | |
"fmt" | |
"os" | |
"io/ioutil" | |
"path/filepath" | |
"strings" | |
"math/rand" | |
"time" |
This file contains 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
#!/usr/bin/perl | |
use LWP::UserAgent; | |
sub usage {print "HSTS Validate\n# perl hsts.pl https://domain.com\n";exit(254);} | |
my $url = shift || usage(); | |
my $status = 0; | |
my $res = (LWP::UserAgent->new(timeout=>3,agent =>'Mozilla/5.0'))->get($url); | |
print "Failed connection\n" and exit(255) unless ($res->code < 302); | |
if($res->header("strict-transport-security") eq ""){print "no hsts flag" and exit(4);} | |
print "max-age lower then 31536000\n" and $status++ if ($res->header("strict-transport-security") =~ /max-age=(\d+)/g)[0] < 31536000; |
This file contains 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
#!/usr/bin/perl | |
# FLAGS | |
$NASM = "nasm -f elf64"; | |
$GCC = "gcc -no-pie"; | |
# COMPILATION | |
map { print "$NASM $_\n"; `$NASM $_`} glob("*.asm"); | |
map { $elf = substr($_, 0, -2); print "$GCC $elf\n"; `$GCC $_ -o $elf`} glob("*.o"); |
This file contains 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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"regexp" | |
"strconv" | |
"strings" | |
"flag" | |
) | |
var ( |
This file contains 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
/* | |
Google Meet communication | |
*/ | |
package main | |
import ( | |
// Google SDK Libraries | |
"golang.org/x/net/context" | |
"golang.org/x/oauth2" | |
"golang.org/x/oauth2/google" |
This file contains 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"net/http" | |
"strconv" | |
"io/ioutil" | |
"os" | |
"flag" |
This file contains 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
/* | |
go build -o opengo.so -buildmode=c-shared open.go | |
*/ | |
package main | |
// #cgo LDFLAGS: -fpic -shared | |
// #include <sys/types.h> | |
import "C" | |
import ( | |
"strings" |
This file contains 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
package main | |
import ( | |
"fmt" | |
"strings" | |
"github.com/PaesslerAG/gval" | |
) | |
var ( | |
dic = strings.NewReplacer( |
This file contains 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
const fs = require('fs'); | |
const NodeRSA = require('node-rsa'); | |
const cryptokey = ""; // private key | |
const keyoptions = { | |
encryptionScheme: 'pkcs1' | |
}; | |
const privateKey = fs.readFileSync(cryptokey, 'utf8'); | |
const key = new NodeRSA(privateKey); | |
key.setOptions(keyoptions); |
This file contains 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
package main | |
import ( | |
"fmt" | |
) | |
var ( | |
RED = "\x1b[31m" | |
GREEN = "\x1b[32m" | |
YELLOW = "\x1b[33m" |
NewerOlder