Script GoLang SMTP without TLS, used to test Postal Mail Server
package main
import (
"crypto/tls"
"errors"
"log"
"net/smtp"
upstream php-handler { | |
server 127.0.0.1:9000; | |
#server unix:/run/php/php8.2-fpm.sock; | |
} | |
# Set the `immutable` cache control options only for assets with a cache busting `v` argument | |
map $arg_v $asset_immutable { | |
"" ""; | |
default ", immutable"; | |
} |
#!/usr/bin/perl -w | |
# findshell v1.0 == code taken/modified from traps.darkmindz.com | |
#usage: ./findshell.pl | |
use strict; | |
use File::Find; | |
my $sens = shift || 10; | |
my $folder = shift || './'; | |
find(\&backdoor, "$folder"); | |
sub backdoor { | |
if ((/\.(php|txt)/)){ |
#!/bin/bash | |
sudo apt install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg |
Script GoLang SMTP without TLS, used to test Postal Mail Server
package main
import (
"crypto/tls"
"errors"
"log"
"net/smtp"
'use strict'; | |
const crypto = require('crypto'); | |
const ENC_KEY = "bf3c199c2470cb477d907b1e0917c17b"; // set random encryption key | |
const IV = "5183666c72eec9e4"; // set random initialisation vector | |
// ENC_KEY and IV can be generated as crypto.randomBytes(32).toString('hex'); | |
const phrase = "who let the dogs out"; | |
var encrypt = ((val) => { |
'use strict'; | |
const crypto = require('crypto'); | |
const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY; // Must be 256 bits (32 characters) | |
const IV_LENGTH = 16; // For AES, this is always 16 | |
function encrypt(text) { | |
let iv = crypto.randomBytes(IV_LENGTH); | |
let cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(ENCRYPTION_KEY), iv); |
//This should have each valid amount that can be selected in the slider | |
var sliderAmountMap = [10000, 20000,30000, 40000, 45000,50000,65000]; | |
$(function() { | |
$( "#slider" ).slider({ | |
value: 4, //array index of onload selected default value on slider, for example, 45000 in same array will be selected as default on load | |
min: 0, //the values will be from 0 to array length-1 | |
max: sliderAmountMap.length-1, //the max length, slider will snap until this point in equal width increments |
#!/bin/bash | |
# | |
# Mailcoach activation script | |
# | |
# This script will configure Apache with the domain | |
# provided by the user and offer the option to set up | |
# LetsEncrypt as well. | |
# Enable Mailcoach on firstlogin | |
echo "This script will copy the Mailcoach installation into" |
server { | |
server_name nodejs.idch.my.id; | |
location / { | |
proxy_pass http://localhost:3000; #whatever port your app runs on | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection 'upgrade'; | |
proxy_set_header Host $host; |
const http = require('http'); | |
const hostname = '0.0.0.0'; | |
const port = 3000; | |
const server = http.createServer((req, res) => { | |
res.statusCode = 200; | |
res.setHeader('Content-Type', 'text/plain'); | |
res.end('Hello World'); | |
}); |