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
#ToExecute | |
$userName = "user" | |
$domain = "domain" | |
$password = '<<<PASS>>>' | |
$Path = '\\some\path\here' | |
.\Use-Impersonation.ps1 $userName $domain $password {Get-ChildItem $Path | Foreach { Write-Host $_.Name }} | |
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
<# | |
.Synopsis | |
Starts powershell webserver | |
.Description | |
Starts webserver as powershell process. | |
Call of the root page (e.g. http://localhost:8080/) returns a powershell execution web form. | |
Call of /script uploads a powershell script and executes it (as a function). | |
Call of /log returns the webserver logs, /starttime the start time of the webserver, /time the current time. | |
/download downloads and /upload uploads a file. /beep generates a sound and /quit or /exit stops the webserver. | |
Any other call delivers the static content that fits to the path provided. If the static path is a directory, |
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/env python3 | |
""" | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import logging | |
class S(BaseHTTPRequestHandler): |
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
syntax on | |
if &t_BE == '' | |
let &t_BE = "\e[?2004h" | |
let &t_BD = "\e[?2004l" | |
let &t_PS = "\e[200~" | |
let &t_PE = "\e[201~" | |
endif |
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
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: VPNSERVER | |
# Required-Start: $all | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: | |
# Short-Description: Softether VPN Server | |
### END INIT INFO | |
DAEMON=/usr/local/vpnserver/vpnserver |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e96c-e325-11ce-bfc1-08002be10318}\0002\PowerSettings] | |
"ConservationIdleTime"=hex:00,00,00,00 | |
"PerformanceIdleTime"=hex:00,00,00,00 | |
"IdlePowerState"=hex:00,00,00,00 |
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
; RDP Wrapper Library configuration | |
; Do not modify without special knowledge | |
[Main] | |
Updated=2020-07-22 | |
LogFile=\rdpwrap.txt | |
SLPolicyHookNT60=1 | |
SLPolicyHookNT61=1 | |
[PatchCodes] |
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
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g history-limit 10000 | |
setw -g monitor-activity 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
polkit.addRule(function(action, subject) { | |
if ((action.id == "org.freedesktop.color-manager.create-device" || | |
action.id == "org.freedesktop.color-manager.create-profile" || | |
action.id == "org.freedesktop.color-manager.delete-device" || | |
action.id == "org.freedesktop.color-manager.delete-profile" || | |
action.id == "org.freedesktop.color-manager.modify-device" || | |
action.id == "org.freedesktop.color-manager.modify-profile") && | |
subject.isInGroup("vglusers")) { | |
return polkit.Result.YES; | |
} |
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
ssh administrator@mediaserver -i "C:\Users\admin\priv" "381b4222-f694-41f0-9685-ff5bb260df2e" |
NewerOlder