Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
max9836 authored Feb 11, 2024
1 parent e1286bb commit 13510be
Showing 1 changed file with 60 additions and 2 deletions.
62 changes: 60 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,63 @@ You do not have to look at the sections below unless you have great interest of
# Analyze the program
These things are happening while the program runs:
1. Microsoft Edge is launched and negivated to "https://www.Bing.com" by this command `Start-Process msedge -ArgumentList "https://www.bing.com"`
2. Each search query is <!---->
#### 1. Microsoft Edge is launched and negivated to "https://www.Bing.com" by this command `Start-Process msedge -ArgumentList "https://www.bing.com"`. After that, a few seconds(depends on your input)
```
Start-Process msedge -ArgumentList "https://www.bing.com"
Start-Sleep -Seconds $Browser_Load_time
```
#### 2. Each search query is generated by combining the prefix "MICROSOFT_REWARD_CHEATER_APP_OPERATION" and a randomly generated string(text).
```
function Get-RandomString {
param(
[int]$length
)
$characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
$randomString = ''
for ($i = 0; $i -lt $length; $i++) {
$randomString += $characters[(Get-Random -Minimum 0 -Maximum $characters.Length)]
}
return $randomString
}
$randomQueries = 1..$Searches | ForEach-Object {
"MICROSOFT_REWARD_CHEATER_APP_OPERATION?SEARCH=$(Get-RandomString -length $Random_length)"
}
```
#### 3. Each search is performed by a loop.
```
foreach ($query in $randomQueries) {
$Count += 1;
$FILE_DOC += "[$Count]:MICROSOFT REWARD CHEATER APP OPERATION::$query`n"
[System.Windows.Forms.SendKeys]::SendWait("/")
[System.Windows.Forms.SendKeys]::SendWait($query)
[System.Windows.Forms.SendKeys]::SendWait("{ENTER}")
Start-Sleep -Seconds 3
}
```
#### 4. After each search is performed, Microsoft Edge will be closed.
```
Stop-Process -Name msedge
```
#### 5. The system will ask you about the output log file with the following question: `Output log?`
```
$answer = Read-Host -Prompt "Output log? (Y/N)"
if ($answer -eq "Y" -or $answer -eq "y") {
if ($Path -eq "") {
$Path = Read-Host "Please input file path"
}
$File_name = "Microsoft reward cheater output ("
$File_name += Get-Date -Format "yyyy-MM-dd"
$File_name += ").txt"
New-Item -ItemType "File" -Name $File_name -Value $FILE_DOC -Path $Path -Force
Write-Information -MessageData ("The output log has been successfully saved in the specified path, $Path, as $File_name.")
} elseif ($answer -eq "N" -or $answer -eq "n") {
} else {
$answer = Read-Host -Prompt "Output log? (Y/N)"
}
```
> [!NOTE]
> If you want a output log file, type `y` or `Y`; if you do not want a output file, type `n` or `N`.
#### 6. The content of the output log file will be outputted.
```
Write-Output $FILE_DOC
```

0 comments on commit 13510be

Please sign in to comment.