Compare commits
87 Commits
657b53c8fb
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| b7ee3498da | |||
| 6e0d004880 | |||
| ed26939af4 | |||
| 58a15ff9d0 | |||
| 7d5b95fb18 | |||
| 0abfd658b7 | |||
| e2a1abc717 | |||
| 8f0d7a38cf | |||
| 6ae34e9d29 | |||
| 77e69f0621 | |||
| f75fabdbba | |||
| 60473dfc52 | |||
| 70e0ef540b | |||
| df38cb6950 | |||
| 458030236e | |||
| 39cf36d5c4 | |||
| 770d1767fd | |||
| ea06b789fb | |||
| 919b49e442 | |||
| 3a1ca1348f | |||
| a1c1023875 | |||
| 1bb6b58ef4 | |||
| e9a22feb25 | |||
| 36f32f26dc | |||
| 7d8600c7b0 | |||
| ef5439dd32 | |||
| 7d31e44970 | |||
| 592937843c | |||
| 1dd41d7d89 | |||
| e56c36506a | |||
| 174cc6b277 | |||
| d7c55d9883 | |||
| 055ed246a2 | |||
| 30db4c1848 | |||
| b7488cf680 | |||
| a6496241a6 | |||
| 680f3a08c2 | |||
| 46007f48a7 | |||
| a290980d66 | |||
| 2ff2413a8f | |||
| 643586e7a5 | |||
| a3db5e79b7 | |||
| c16f90b5fe | |||
| d4d735cc94 | |||
| 531de3b15b | |||
| 0da9952f74 | |||
| c1c809204d | |||
| c13e5450fc | |||
| 162bbe9cfa | |||
| e202cb6be2 | |||
| 2f32d7447f | |||
| 499ff7ed75 | |||
| 7e587c3c7c | |||
| aa0ab287ca | |||
| aafd05c9f3 | |||
| 5c60d42b41 | |||
| a515b9c765 | |||
| 30a81a23ca | |||
| 205aa2b7a8 | |||
| 9c7c7037c5 | |||
| 7dfeec2898 | |||
| ddec60146b | |||
| 0ce174f0f7 | |||
| ef9644e885 | |||
| f2769dbd3e | |||
| 23527db27f | |||
| 9553e2c7d2 | |||
| bfa7a67142 | |||
| 96b5747ad9 | |||
| 2b1dba5abe | |||
| feff418c9f | |||
| 2a626092e9 | |||
| f3b9253fa6 | |||
| 2ba84c8273 | |||
| 98d3f30802 | |||
| af813e4fd1 | |||
| c31270636f | |||
| cc84238b99 | |||
| 1fb1a48209 | |||
| 6c6d08386f | |||
| 073488eb94 | |||
| 79325ab166 | |||
| b89b6c5a0c | |||
| 0d93e432e8 | |||
| d47e568981 | |||
| 23328875cc | |||
| 764590c350 |
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
webhook.txt
|
*/webhook.txt
|
||||||
tag.txt
|
*/tag.txt
|
||||||
*.tmp
|
*.tmp
|
||||||
*.csv
|
*.csv
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
Install customscripts on linux
|
Install customscripts on linux
|
||||||
with full upgrade and package install
|
with full upgrade and package install
|
||||||
```bash
|
```bash
|
||||||
script=/tmp/install_script.sh && curl -s https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/customscripts/install_script.sh > $script && chmod +x $script && $SHELL -c "$script full" && $SHELL /usr/share/customscripts/configure_webhook.sh full && exec $SHELL
|
script=/tmp/install_script.sh && curl -s https://git.thecoven.info/PrincessPi/general-scripts-and-system-ssssssetup/raw/branch/main/customscripts/install_script.sh > $script && chmod +x $script && $SHELL -c "$script full" && $SHELL /usr/share/customscripts/configure_webhook.sh full && exec $SHELL
|
||||||
```
|
```
|
||||||
without full upgrade and package install
|
without full upgrade and package install
|
||||||
```bash
|
```bash
|
||||||
script=/tmp/install_script.sh && curl -s https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/customscripts/install_script.sh > $script && chmod +x $script && $SHELL -c "$script" && $SHELL /usr/share/customscripts/configure_webhook.sh && exec $SHELL
|
script=/tmp/install_script.sh && curl -s https://git.thecoven.info/PrincessPi/general-scripts-and-system-ssssssetup/raw/branch/main/customscripts/install_script.sh > $script && chmod +x $script && $SHELL -c "$script" && $SHELL /usr/share/customscripts/configure_webhook.sh && exec $SHELL
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
@@ -96,6 +96,11 @@ script=/tmp/install_script.sh && curl -s https://raw.githubusercontent.com/Princ
|
|||||||
#### anti-productivity
|
#### anti-productivity
|
||||||
* `IM_SO_TIRED_BOSS.ps1`
|
* `IM_SO_TIRED_BOSS.ps1`
|
||||||
|
|
||||||
|
### Clean up Windows!
|
||||||
|
```powershell
|
||||||
|
iwr https://git.thecoven.info/PrincessPi/general-scripts-and-system-ssssssetup/raw/branch/main/Windows-Scripts/windows-repair.ps1?nocache=$(Get-Random) -OutFile $env:TEMP\windows-repair-temp.ps1; powershell -nop -ep Bypass -File $env:TEMP\windows-repair-temp.ps1
|
||||||
|
```
|
||||||
|
|
||||||
todo:
|
todo:
|
||||||
1. windwows gitinitshit
|
1. windwows gitinitshit
|
||||||
2. convert windows-repair.bat to powershell and add more features and checks
|
2. convert windows-repair.bat to powershell and add more features and checks
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
# Windows-Repair.ps1 Usage:
|
# Windows-Repair.ps1 Usage:
|
||||||
1. Open PowerShell as Administrator via these keyboard shotcuts in sequence
|
1. Open PowerShell terminal
|
||||||
1. WIN+X
|
|
||||||
2. ALT+A
|
|
||||||
3. ALT+Y
|
|
||||||
2. Run
|
|
||||||
```powershell
|
```powershell
|
||||||
powershell.exe -Command "Invoke-WebRequest -Uri `"https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/Windows-Scripts/windows-repair.ps1`" -OutFile `"$env:TEMP\windows-repair.ps1`"" && powershell.exe -ExecutionPolicy Bypass -File "$env:TEMP\windows-repair.ps1"
|
iwr -UseBasicParsing -Uri "https://git.thecoven.info/PrincessPi/general-scripts-and-system-ssssssetup/raw/branch/main/Windows-Scripts/windows-repair.ps1?nocache=$(Get-Random)" -OutFile "$env:TEMP\windows-repair3.ps1"; &"$env:TEMP\windows-repair3.ps1"
|
||||||
```
|
```
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# TEXT TO ASCII ART GENERATOR https://patorjk.com/software/taag/#p=display&f=Graceful&t=PRINCESS+PI&x=none&v=4&h=4&w=80&we=false
|
||||||
|
# IMAGE TO ASCII ART GENERATOR https://www.asciiart.eu/image-to-ascii
|
||||||
|
Clear-Host # cleanup
|
||||||
|
Write-Host -ForegroundColor Magenta @'
|
||||||
|
=--= =----=
|
||||||
|
=--= -------=
|
||||||
|
=--= --------=
|
||||||
|
=----= --- =---------=
|
||||||
|
----= =--- ---==++=----:-----=
|
||||||
|
=-----= - ---- ========----::----=
|
||||||
|
=------= ----=+===-::::::::=+**++===+#
|
||||||
|
==-----=----=+**+=:::-======++******+==+##
|
||||||
|
=------=-=+*:::-=============+*****+==+*##
|
||||||
|
=------=+=:-++==--+=++===+====+***+===***=
|
||||||
|
=--------+*===---+===+===+++==+**=+==+**+-
|
||||||
|
=------=+===--=+++==++++%%*==**====+**+.- -
|
||||||
|
#=---=+====-=+++=+++*+.%+-==**=-==+**+.. --
|
||||||
|
#**+--+========++++#%#**=--==**--==+**=..: =-
|
||||||
|
*****+======+-+++*%%@@%=---==**--+=+*--:..- =
|
||||||
|
#*****=====+=-=++***#%#-----=**=-+=+*=---:.. %%
|
||||||
|
%****+====+=--=+++.:+*=-------=*-===**=---:..- %%
|
||||||
|
#***+=====------=:.-=----------==+=+**+---...: %%%%#%
|
||||||
|
#**+====:---------=-------------+=+=***=-....: %%##%%##
|
||||||
|
%***====..:---------------------==+=-****:.....+%#%%#%%%%#
|
||||||
|
#**+==*=...---------------:.----+==--=***=....##%#######%%
|
||||||
|
#***+=+*=...--------------:..:--=+=----+***:...#%###%%##%
|
||||||
|
#**+==+*=..:-------------:...:--++------=***.:+##%#%%%#% =
|
||||||
|
#***+==+**...:----------:.....:--+=------==**++##%#%%%%% =-
|
||||||
|
#***#+==+**=.................+*---+=------=#+=##%%##%%%#%=---
|
||||||
|
%#**#%*===+***-.....---...=+.:*#=----------=##*#%####%%%%#=----
|
||||||
|
%#### +===****-...: -+##=#%%+---------+###%%%%%%#%%%%%*-----
|
||||||
|
*===+****-..- %###%%%+------=*######%%%%%%%##%#*------
|
||||||
|
+===+****-.- %##%%%*-----#########%####%#####*-------
|
||||||
|
____ ____ __ __ _ ___ ____ ____ ____ ____ __
|
||||||
|
( _ \( _ \( )( ( \ / __)( __)/ ___)/ ___) ( _ \( )
|
||||||
|
) __/ ) / )( / /( (__ ) _) \___ \\___ \ ) __/ )(
|
||||||
|
(__) (__\_)(__)\_)__) \___)(____)(____/(____/ (__) (__)
|
||||||
|
'@
|
||||||
Binary file not shown.
@@ -0,0 +1,143 @@
|
|||||||
|
# Usage:
|
||||||
|
# Open PowerShell as Administrator
|
||||||
|
# win+x
|
||||||
|
# alt+a
|
||||||
|
# alt+y
|
||||||
|
# Run:
|
||||||
|
# In admin powershell Terminal:
|
||||||
|
# iwr -UseBasicParsing -Uri "https://git.thecoven.info/PrincessPi/general-scripts-and-system-ssssssetup/raw/branch/main/Windows-Scripts/windows-repair.ps1?nocache=$(Get-Random)" -OutFile "$env:TEMP\windows-repair-temp.ps1"; powershell -ExecutionPolicy Bypass -File "$env:TEMP\windows-repair-temp.ps1"
|
||||||
|
# or maybe
|
||||||
|
# iwr https://git.thecoven.info/PrincessPi/general-scripts-and-system-ssssssetup/raw/branch/main/Windows-Scripts/windows-repair.ps1 | iex
|
||||||
|
|
||||||
|
# check if hasadmin rights, if notm run script in new terminal, clopsing old
|
||||||
|
## if not, carry on
|
||||||
|
if (-not ([Security.Principal.WindowsIdentity]::GetCurrent().Groups -contains 'S-1-5-32-544')) {
|
||||||
|
# launch tghis script int new window after promopting for admin
|
||||||
|
Start-Process -FilePath 'powershell' -Verb RunAs -ArgumentList "-ExecutionPolicy Bypass -File $PSCommandPath"
|
||||||
|
|
||||||
|
# CLOSE previous terminal
|
||||||
|
exit 0
|
||||||
|
} else {
|
||||||
|
clear # clear window
|
||||||
|
|
||||||
|
Write-Host -ForegroundColor Magenta @'
|
||||||
|
.. .....
|
||||||
|
....------..
|
||||||
|
..:--------.. .......
|
||||||
|
..----------.. ....---..
|
||||||
|
...---------=------::....:----:..
|
||||||
|
..-----=+**************=-----:...
|
||||||
|
.----+****************=-----...
|
||||||
|
.--=****************=-----=**+:::--:....
|
||||||
|
.-=#*********##**++=---====++**+-----:.
|
||||||
|
..:==********#=.+@%-==++===++===++*=----...
|
||||||
|
.:=::******%%+-::=++====+==++====+**=--...
|
||||||
|
.:+..+*****--@===-:-%--====-=+====+*#=:..
|
||||||
|
.-=.-****#=.#+===--=+===----======+*+..
|
||||||
|
.:=:+****#@#+=====-**-----*+====++**:.
|
||||||
|
.. .=****=--======-..%-----%+==++***+-..
|
||||||
|
..=++***+-.----======..*-----#+==+***#%#+..
|
||||||
|
.. .:-..---=====--------=-+==+**-@*. ............::::::....
|
||||||
|
..=:..--===+-:-------*%+==*+#%**=. .....:-------------------------:.
|
||||||
|
..............-:..--===+-..:-------+==+==.:... ...:----------------------------::.
|
||||||
|
......:----------::=:...--==+--:.:-------+==+=:.... ....--------------------------:.....
|
||||||
|
..:::----------------=-::.:--===---:.:------=--:.... ...:---------------------------...
|
||||||
|
..:------------------=--:..:--=+=--------::.:+-..... ...------------------------------..
|
||||||
|
...:-----------------:....----==-------:...=%*.......:::--------------------------------:..
|
||||||
|
...--------------:+......---------------:+%%#.----------------------------:.......-----:..
|
||||||
|
.:----===-------:-.. .:--------------*%%%%=--------------========------:.......-------:...
|
||||||
|
..-:.:------------....-.=---------=#%%%%##%------------=-----------------------------------..
|
||||||
|
.:--:....:--------:##*=:.-------=#%%%%%%#%+-----------=-------------------------------------:
|
||||||
|
..:-----------------::*%%#-------=###%%%%##=--------------------------------------:............
|
||||||
|
..:-------------------:.-#%%##+==+%%%%%%#%+------------------------...:::--------------::::::..
|
||||||
|
...:----------------------..-#%#%%%%%%%%*+#%=-------------------------=-:....:----------------:...
|
||||||
|
--------------------------:.-#%%%%%%%%+#@%%%--------------------------=++=-::---------------:...
|
||||||
|
---------------------------...+%%%%%%%#%%%%#---------------------------------------------:....
|
||||||
|
............------.....----:....-#%%%%%%%*=------------------------------::+=---------.......
|
||||||
|
..:-... ....-----.. ....-=-------------------------------------.=*+=.......
|
||||||
|
..---:....:-----:.......:--------------------------:-------------==+=-......
|
||||||
|
.:-------------..........:---------------------------..:-------------==..........
|
||||||
|
..-------------:... ...--------:...----------------....:-----------==-...........
|
||||||
|
..:----==------:..-.... ..--------:...:---------------.....:----------=+-.....
|
||||||
|
..------==+=++==-..+--:. .:--------.....-----------=*%=.. ..----------=+=......
|
||||||
|
....------------........:... ..:--------.....-------+#%%#@%.. ...----------=+=......
|
||||||
|
....---------===:............... .:----=+*#=. ..--+#**+%@@@#%+. ..:-:..=----=*=:.....
|
||||||
|
:............:=::+=:--:=.=-.::=... ..*@*-+%@@@:.....-@@#%@*#@@@#%:.. ..-:..---:-#**+-.........
|
||||||
|
.. ...::::....::-.:.::-.. ..*%:..*@@@*.. ..-%#%@@+%@@@@=.. ...::.=#=..-%*++=:... ...
|
||||||
|
...... .......... ..**...*#=*%:. .-*#@%+#%@@@@+... ..*%@%+...+%+=*+=-...
|
||||||
|
..*#:.-#+..+-. ..-*#**%%*%@@%=.. ..-%@@*:..+@%=:+**+=:..
|
||||||
|
..*@#*%%=..==. .-*%@#%@##@@@#-. ...#@@%*-=%@@#:..-=++=-
|
||||||
|
.:#@*-:++..==. .=#%@%*@@*%*=+*:....:.+@*::+%@@@%=......-*
|
||||||
|
.-%+...=%##%-. .+@*@%*%@##*-:*+..:-==*@=..:#@+:=*:.......
|
||||||
|
.:*#:..:*@@@%:. .-%@*%@#*%*#=..-%-....:+#=-.:#%-.:+-.......
|
||||||
|
.+@#=.-*@@@@*.. ....-%@@@@@@=..+%*.. .-%--=+#%-.:*-. ....
|
||||||
|
.-=++++++++=... .:***+++==::::... .-%#=-*#%#**#-.
|
||||||
|
..............
|
||||||
|
'@
|
||||||
|
|
||||||
|
Write-Host "`nFIXING WINDOWS FULL PRINCESS PI STYLE (THIS WILL TAKE MANY HOURS AND REBOOT MORE THAN ONCE, SLOWLY)`n" -ForegroundColor Magenta
|
||||||
|
|
||||||
|
Write-Host "ABORTING ANY SCHEDULED SHUTDOWN 1/17"
|
||||||
|
shutdown.exe /a > $null 2> $null # cmd abort scheduled shutdowns
|
||||||
|
|
||||||
|
Write-Host "GENERATING AND DISPLAYING COMPREHENSIVE STABILITY REPORT 2/17"
|
||||||
|
Start-Process "perfmon.exe" -ArgumentList "/report" -Wait
|
||||||
|
|
||||||
|
Write-Host "GENERATING AND DISPLAYING STABILITY HISTORY REPORT 3/17"
|
||||||
|
Start-Process "perfmon.exe" -ArgumentList "/rel" -Wait
|
||||||
|
|
||||||
|
Write-Host "CLEARING DNS 4/17"
|
||||||
|
ipconfig.exe /flushsdns > $null
|
||||||
|
|
||||||
|
Write-Host "CLEARING ARP CACHE 5/17"
|
||||||
|
Remove-NetNeighbor -Confirm:$false > $null 2> $null
|
||||||
|
|
||||||
|
Write-Host "CLEARING ALL SAMBA CREDENTIALS 6/17"
|
||||||
|
net.exe use * /delete /y > $null 2> $null # nuke all samba creds
|
||||||
|
|
||||||
|
Write-Host "RELEASING AND RENEWING DHCP 7/17"
|
||||||
|
# release and renew dhcp
|
||||||
|
ipconfig.exe /release > $null
|
||||||
|
ipconfig.exe /renew > $null
|
||||||
|
|
||||||
|
Write-Host "GETTING CONTROL OF WINDOWS UPDATE"
|
||||||
|
Install-Module -Name PSWindowsUpdate -Force > $null 2> $null
|
||||||
|
|
||||||
|
|
||||||
|
Import-Module PSWindowsUpdate
|
||||||
|
|
||||||
|
Write-Host "UPDATING MALWARE SIGNATURES 8/17"
|
||||||
|
Update-MpSignature # update windows defender malware siggs
|
||||||
|
|
||||||
|
Write-Host "RUNNING WINDOWS MALICIOUS SOFTWARE REMOVAL TOOL (MRT, MAY TAKE A LONG TIME, WONT SHOW STATUS) 9/17"
|
||||||
|
Start-Process -FilePath "MRT.exe" -ArgumentList "/F:Y /Q" -Wait # do full microsoft malicious software removal scan in background automatically removing anything found, wait to proceed
|
||||||
|
|
||||||
|
Write-Host "UPDATING MALWARE SIGNATURES (AGAIN) 10/17"
|
||||||
|
Update-MpSignature # update windows defender malware siggs
|
||||||
|
|
||||||
|
Write-Host "RUNNING FULL WINDOWS DEFENDER SCAN 11/17"
|
||||||
|
Start-MpScan -ScanType FullScan # full windows defender scan
|
||||||
|
|
||||||
|
Write-Host "RUNNING DISM ONLINE IMAGE CLEANUP 12/17"
|
||||||
|
DISM.exe /Online /Cleanup-Image /RestoreHealth # online check for bad files
|
||||||
|
|
||||||
|
Write-Host "RUNNING SYSTEM FILE CHECKER (SFC) 13/17"
|
||||||
|
SFC.exe /scannow # older check for bad files
|
||||||
|
|
||||||
|
Write-Host "SCHEDULING ESSENTIAL FILE CHECK ON NEXT BOOT 14/17"
|
||||||
|
SFC.exe /scanonce # check essential files on next boot
|
||||||
|
|
||||||
|
Write-Host "SCHEDULING OFFLINE CHECK DISK AND REPAIR OF C: (CHKDSK) 15/17"
|
||||||
|
echo y | chkdsk.exe /f /r C: # cmd checks C drive after reboot to waste time and fix errors (noninteractive via y ffuckery)
|
||||||
|
|
||||||
|
Write-Host "SCHEDULINMG OFFLINE MEMTEST 16/17"
|
||||||
|
mdsched.exe /s # schedule offline memtest (noninteractive)
|
||||||
|
|
||||||
|
Write-Host "SCHEDULING WINDOWS DEFENDER OFFLINE SCAN MAY REBOOT UNEXPECTEDLY 17/17"
|
||||||
|
Start-MpWDOScan # powershell starts Windows Defender Offline Scan after reboot
|
||||||
|
|
||||||
|
Write-Host "`nREBOOTING IN 5 MINUTES MAX PROVBABLY SOONER`n"
|
||||||
|
shutdown.exe /r /t (60*5) # shutdown in 5 minutes as failsafe
|
||||||
|
|
||||||
|
Write-Host "`nDONEsiez :3~`n"
|
||||||
|
}
|
||||||
@@ -4,34 +4,149 @@
|
|||||||
# alt+a
|
# alt+a
|
||||||
# alt+y
|
# alt+y
|
||||||
# Run:
|
# Run:
|
||||||
# powershell.exe -Command "Invoke-WebRequest -Uri `"https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/Windows-Scripts/windows-repair.ps1`" -OutFile `"$env:TEMP\windows-repair.ps1`"" && powershell.exe -ExecutionPolicy Bypass -File "$env:TEMP\windows-repair.ps1"
|
# In admin powershell Terminal:
|
||||||
|
# iwr https://git.thecoven.info/PrincessPi/general-scripts-and-system-ssssssetup/raw/branch/main/Windows-Scripts/windows-repair.ps1?nocache=$(Get-Random) -OutFile $env:TEMP\windows-repair-temp.ps1; powershell -nop -ep Bypass -File $env:TEMP\windows-repair-temp.ps1
|
||||||
|
|
||||||
# Check for administrator privileges
|
# check if hasadmin rights, if notm run script in new terminal, clopsing old
|
||||||
if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
|
## if not, carry on
|
||||||
# Restart with elevated privileges
|
if (-not ([Security.Principal.WindowsIdentity]::GetCurrent().Groups -contains 'S-1-5-32-544')) {
|
||||||
Start-Process powershell.exe -Verb RunAs -ArgumentList "-File `"$($MyInvocation.MyCommand.Path)`""
|
# launch tghis script int new window after promopting for admin
|
||||||
exit
|
Start-Process -FilePath 'powershell' -Verb RunAs -ArgumentList "-ExecutionPolicy Bypass -File $PSCommandPath"
|
||||||
}
|
|
||||||
|
|
||||||
Write-Host "`nFIXING WINDOWS FULL STYLE`n"
|
# CLOSE previous terminal with success
|
||||||
|
exit 0
|
||||||
|
} else {
|
||||||
|
Clear-Host # clear window
|
||||||
|
|
||||||
Write-Host "ABORTING ANY SCHEDULED SHUTDOWN"
|
# ascii art
|
||||||
shutdown /a # cmd abort scheduled shutdowns
|
Write-Host -ForegroundColor Magenta @'
|
||||||
|
.. .....
|
||||||
|
....------..
|
||||||
|
..:--------.. .......
|
||||||
|
..----------.. ....---..
|
||||||
|
...---------=------::....:----:..
|
||||||
|
..-----=+**************=-----:...
|
||||||
|
.----+****************=-----...
|
||||||
|
.--=****************=-----=**+:::--:....
|
||||||
|
.-=#*********##**++=---====++**+-----:.
|
||||||
|
..:==********#=.+@%-==++===++===++*=----...
|
||||||
|
.:=::******%%+-::=++====+==++====+**=--...
|
||||||
|
.:+..+*****--@===-:-%--====-=+====+*#=:..
|
||||||
|
.-=.-****#=.#+===--=+===----======+*+..
|
||||||
|
.:=:+****#@#+=====-**-----*+====++**:.
|
||||||
|
.. .=****=--======-..%-----%+==++***+-..
|
||||||
|
..=++***+-.----======..*-----#+==+***#%#+..
|
||||||
|
.. .:-..---=====--------=-+==+**-@*. ............::::::....
|
||||||
|
..=:..--===+-:-------*%+==*+#%**=. .....:-------------------------:.
|
||||||
|
..............-:..--===+-..:-------+==+==.:... ...:----------------------------::.
|
||||||
|
......:----------::=:...--==+--:.:-------+==+=:.... ....--------------------------:.....
|
||||||
|
..:::----------------=-::.:--===---:.:------=--:.... ...:---------------------------...
|
||||||
|
..:------------------=--:..:--=+=--------::.:+-..... ...------------------------------..
|
||||||
|
...:-----------------:....----==-------:...=%*.......:::--------------------------------:..
|
||||||
|
...--------------:+......---------------:+%%#.----------------------------:.......-----:..
|
||||||
|
.:----===-------:-.. .:--------------*%%%%=--------------========------:.......-------:...
|
||||||
|
..-:.:------------....-.=---------=#%%%%##%------------=-----------------------------------..
|
||||||
|
.:--:....:--------:##*=:.-------=#%%%%%%#%+-----------=-------------------------------------:
|
||||||
|
..:-----------------::*%%#-------=###%%%%##=--------------------------------------:............
|
||||||
|
..:-------------------:.-#%%##+==+%%%%%%#%+------------------------...:::--------------::::::..
|
||||||
|
...:----------------------..-#%#%%%%%%%%*+#%=-------------------------=-:....:----------------:...
|
||||||
|
--------------------------:.-#%%%%%%%%+#@%%%--------------------------=++=-::---------------:...
|
||||||
|
---------------------------...+%%%%%%%#%%%%#---------------------------------------------:....
|
||||||
|
............------.....----:....-#%%%%%%%*=------------------------------::+=---------.......
|
||||||
|
..:-... ....-----.. ....-=-------------------------------------.=*+=.......
|
||||||
|
..---:....:-----:.......:--------------------------:-------------==+=-......
|
||||||
|
.:-------------..........:---------------------------..:-------------==..........
|
||||||
|
..-------------:... ...--------:...----------------....:-----------==-...........
|
||||||
|
..:----==------:..-.... ..--------:...:---------------.....:----------=+-.....
|
||||||
|
..------==+=++==-..+--:. .:--------.....-----------=*%=.. ..----------=+=......
|
||||||
|
....------------........:... ..:--------.....-------+#%%#@%.. ...----------=+=......
|
||||||
|
....---------===:............... .:----=+*#=. ..--+#**+%@@@#%+. ..:-:..=----=*=:.....
|
||||||
|
:............:=::+=:--:=.=-.::=... ..*@*-+%@@@:.....-@@#%@*#@@@#%:.. ..-:..---:-#**+-.........
|
||||||
|
.. ...::::....::-.:.::-.. ..*%:..*@@@*.. ..-%#%@@+%@@@@=.. ...::.=#=..-%*++=:... ...
|
||||||
|
...... .......... ..**...*#=*%:. .-*#@%+#%@@@@+... ..*%@%+...+%+=*+=-...
|
||||||
|
..*#:.-#+..+-. ..-*#**%%*%@@%=.. ..-%@@*:..+@%=:+**+=:..
|
||||||
|
..*@#*%%=..==. .-*%@#%@##@@@#-. ...#@@%*-=%@@#:..-=++=-
|
||||||
|
.:#@*-:++..==. .=#%@%*@@*%*=+*:....:.+@*::+%@@@%=......-*
|
||||||
|
.-%+...=%##%-. .+@*@%*%@##*-:*+..:-==*@=..:#@+:=*:.......
|
||||||
|
.:*#:..:*@@@%:. .-%@*%@#*%*#=..-%-....:+#=-.:#%-.:+-.......
|
||||||
|
.+@#=.-*@@@@*.. ....-%@@@@@@=..+%*.. .-%--=+#%-.:*-. ....
|
||||||
|
.-=++++++++=... .:***+++==::::... .-%#=-*#%#**#-.
|
||||||
|
..............
|
||||||
|
'@
|
||||||
|
# vars
|
||||||
|
$LogDir = "$env:USERPROFILE\Downloads\Repair-Log-$((Get-Date).ToString('yyyy-MM-dd-HHmm'))" # path to new log Dir
|
||||||
|
$MainLog = "$LogDir\main.log" # error log file
|
||||||
|
|
||||||
Write-Host "RUNNING WINDOWS MALICIOUS SOFTWARE REMOVAL TOOL (mrt)"
|
Write-Host "FIXING WINDOWS FULL PRINCESS PI STYLE (THIS WILL TAKE MANY HOURS AND REBOOT MORE THAN ONCE, SLOWLY)`n" -ForegroundColor Magenta
|
||||||
mrt # cmd malicious software removal tool
|
|
||||||
|
|
||||||
Write-Host "RUNNING SYSTEM FILE CHECKER (sfc)"
|
Write-Output "Creating Log Dir at $LogDir 1/21 at $((Get-Date).ToString('yyyy-MM-dd-HHmm'))"
|
||||||
sfc /scannow # cmd system file checker, retreives and replaces bad system files
|
mkdir "$LogDir" > $null 2> $null # create log dir
|
||||||
|
|
||||||
Write-Host "RUNNING DISM"
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm')) Initialize Log File $LogFile 3/21`n`tFollow Log File in Another Terminal With`n`t`t``Get-Content `"$MainLog`" -Wait -Tail 50``"
|
||||||
DISM /Online /Cleanup-Image /RestoreHealth # powershell checks image and replaces bad files
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))" >> "$MainLog"
|
||||||
|
|
||||||
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tOpening Log Dir 2/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
|
explorer.exe "$LogDir"
|
||||||
|
|
||||||
Write-Host "SCHEDULING OFFLINE CHECK DISK AND REPAIR OF C: (chkdsk)"
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tAborting Any Scheduled Shutdowns 4/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
Write-Host y | chkdsk /f /r C: # cmd checks C drive after reboot to waste time and fix errors (noninteractive)
|
shutdown.exe /a > $null 2>> "$MainLog" # cmd abort scheduled shutdowns
|
||||||
|
|
||||||
Write-Host "SCHEDULING WINDOWS DEFENDER OFFLINE SCAN"
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`t`Creating Log Dir at $LogDir 5/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
Start-MpWDOScan # powershell starts Windows Defender Offline Scan after reboot
|
New-Item -Path "$LogDir" -ItemType Directory > $null 2>> "$MainLog" # create log dir
|
||||||
|
|
||||||
Write-Host "`nREBOOTING IN 5 MINUTES`n"
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tGenerating and Displaying Comprehensive Stability Report 6/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
shutdown /r /t 300
|
Start-Process "perfmon.exe" -ArgumentList "/report" -Wait # running report
|
||||||
|
|
||||||
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tGenerating and Displaying Stability History Report 7/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
|
Start-Process "perfmon.exe" -ArgumentList "/rel" -Wait # historical report
|
||||||
|
|
||||||
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tClearning DNS Cache 8/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
|
ipconfig.exe /flushsdns > $null 2>> "$MainLog" # flush dns cache
|
||||||
|
|
||||||
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tClearing ARP Table 9/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
|
Remove-NetNeighbor -Confirm:$false > $null 2>> "$MainLog" # flush ARP Table
|
||||||
|
|
||||||
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tClearing ALL Samba Credentials 10/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
|
net.exe use * /delete /y > $null 2>> "$MainLog" # nuke all samba creds automagically
|
||||||
|
|
||||||
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tReleasing and Renweing DHCP 11/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
|
# release and renew dhcp
|
||||||
|
ipconfig.exe /release > $null 2>> "$MainLog"
|
||||||
|
ipconfig.exe /renew > $null 2>> "$MainLog"
|
||||||
|
|
||||||
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tGetting Control of Windows Update 12/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
|
Install-Module -Name PSWindowsUpdate -Force > $null 2>> "$MainLog"
|
||||||
|
Import-Module PSWindowsUpdate
|
||||||
|
|
||||||
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tUpdating Windows 13/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
|
Get-WindowsUpdate -AcceptAll -Install -IgnoreReboot > $null 2>> "$MainLog"
|
||||||
|
|
||||||
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tUpdating Malware Signatures 14/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
|
Update-MpSignature 2>> "$MainLog" # update windows defender malware siggs
|
||||||
|
|
||||||
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tRunning FULL Windows Defender SCAN 15/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
|
Start-MpScan -ScanType FullScan 2>> "$MainLog" # full windows defender scan
|
||||||
|
|
||||||
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tRunning DISM Online Image Cleanup 16/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
|
DISM.exe /Online /Cleanup-Image /RestoreHealth 2>> "$MainLog" # online check for bad files
|
||||||
|
|
||||||
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tRunning System File Checker 17/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
|
SFC.exe /scannow 2>> "$MainLog" # older check for bad files
|
||||||
|
|
||||||
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tScheduling Essential File Check on Next Boot 18/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
|
SFC.exe /scanonce 2>> "$MainLog" # check essential files on next boot
|
||||||
|
|
||||||
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tScheduling Offline chkdsk and Repair of C: 19/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
|
Write-Output y | chkdsk.exe /f /r C: > $null 2>> "$MainLog" # cmd checks C drive after reboot to waste time and fix errors (noninteractive via y ffuckery)
|
||||||
|
|
||||||
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tScheduling Offline Memory Test at Next Boot 20/21" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
|
mdsched.exe /s 2>> "$MainLog" # schedule offline memtest (noninteractive)
|
||||||
|
|
||||||
|
Write-Output "$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`tScheduling Windows Defender Offline Scan 21/21`n`tMAY REBOOT UNEXPECTEDLY`n" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
|
Start-MpWDOScan 2>> "$MainLog" # powershell starts Windows Defender Offline Scan after reboot
|
||||||
|
|
||||||
|
Write-Host "`nRebooting in 5 Minutes MAX Probably Sooner`n" -ForegroundColor Magenta
|
||||||
|
shutdown.exe /r /t (60*5) # shutdown in 5 minutes as failsafe
|
||||||
|
|
||||||
|
Write-Output "`n$((Get-Date).ToString('yyyy-MM-dd-HHmm'))`n`nDONEsiez :3~`n" | Tee-Object -FilePath "$MainLog" -Append
|
||||||
|
}
|
||||||
@@ -6,4 +6,14 @@ clear && echo -e "\n\n\n\n\n\n\n\n\n\n\n\n\n\e[32mFOOOKN 1TB DUMP IN PROGRESS DO
|
|||||||
watch file growth based on partial names
|
watch file growth based on partial names
|
||||||
```bash
|
```bash
|
||||||
file_tag=Kali-Pi5-Full-Configured-Working-1TB && dump_pid=1717053 && watch -n 300 "echo -e '\n\n\n\e[32mFOOOKN 1TB DUMP IN PROGRESS DONT FUCK WITH ANYTHNG\e[0m\n\n\n' && ls -lAh *${file_tag}* && echo && free -h && echo && uptime && echo && ps -p $dump_pid -o etime"
|
file_tag=Kali-Pi5-Full-Configured-Working-1TB && dump_pid=1717053 && watch -n 300 "echo -e '\n\n\n\e[32mFOOOKN 1TB DUMP IN PROGRESS DONT FUCK WITH ANYTHNG\e[0m\n\n\n' && ls -lAh *${file_tag}* && echo && free -h && echo && uptime && echo && ps -p $dump_pid -o etime"
|
||||||
```
|
```
|
||||||
|
**submit sample to virustotal**
|
||||||
|
```bash
|
||||||
|
# in ~/.bashrc
|
||||||
|
export VIRUSTOTAL_API_KEY="<mah key>"
|
||||||
|
|
||||||
|
# in cli
|
||||||
|
sha256dsum SAMPLE.zip # get sha256 to look up on the site
|
||||||
|
curl -X POST -H "X-ApiKey: $VIRUSTOTAL_API_KEY" -F "file=@$PWD/SAMPLE.zip" https://www.virustotal.com/api/v3/files
|
||||||
|
# then look up file by sha256 checksum on the site
|
||||||
|
```
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# file paths
|
||||||
|
sha256_file_path=./checksums.sha256
|
||||||
|
md5_file_path=./checksums.md5
|
||||||
|
error_log=./checksums_error.log
|
||||||
|
|
||||||
|
# text colors
|
||||||
|
RED='\e[31m'
|
||||||
|
GREEN='\e[32m'
|
||||||
|
RESET='\e[0m'
|
||||||
|
|
||||||
|
# set these false at the start to be safe
|
||||||
|
checksha256=false
|
||||||
|
checkmd5=false
|
||||||
|
|
||||||
|
# output errors to error log
|
||||||
|
exec 2> >(tee -a "$error_log" >&2)
|
||||||
|
|
||||||
|
# environment checks
|
||||||
|
## check for presence of $sha256_file_path, fail with general error on error
|
||||||
|
if [ ! -f "$sha256_file_path" ]; then
|
||||||
|
echo -e "\n${RED}FAIL!${RESET} File $sha256_file_path Not Found!\n" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
## check if $sha256_file_path is writable
|
||||||
|
if [ ! -r "$sha256_file_path" ]; then
|
||||||
|
echo -e "\n${RED}FAIL!${RESET} File $sha256_file_path Exists But Not Readable!\n" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
## check for presence of $md5_file_path, fail with general error on error
|
||||||
|
if [ ! -f "$md5_file_path" ]; then
|
||||||
|
echo -e "\nFAIL! File $md5_file_path Not Found!\n" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
## check if $md5_file_path is writable
|
||||||
|
if [ ! -r "$md5_file_path" ]; then
|
||||||
|
echo -e "\n${RED}FAIL!${RESET} File $md5_file_path Exists But Not Readable!\n" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# check checksums
|
||||||
|
## check sha256
|
||||||
|
if sha256sum -c "$sha256_file_path" 1>/dev/null; then
|
||||||
|
echo -e "SHA256 Checksums: ${GREEN}OK!${RESET}"
|
||||||
|
checksha256=true
|
||||||
|
else
|
||||||
|
echo -e "\n\nSHA256 Checksums: ${RED}BAD!${RESET}\nDumping SHA256 Checksum Fails:" >&2
|
||||||
|
sha256sum -c "$sha256_file_path" | grep 'FAILED' >&2
|
||||||
|
echo -e "\nSHA256 Checksums: ${RED}BAD!${RESET}\n" >&2
|
||||||
|
fi
|
||||||
|
## check md5
|
||||||
|
if md5sum -c "$md5_file_path" 1>/dev/null; then
|
||||||
|
echo -e "MD5 checksums: ${GREEN}OK!${RESET}"
|
||||||
|
checkmd5=true
|
||||||
|
else
|
||||||
|
echo -e "\n\nFAIL: MD5 Checksums: ${RED}BAD!${RESET}\n\tDumping MD5 Checksum Fails:" >&2
|
||||||
|
md5sum -c "md5_file_path" | grep 'FAILED' >&2
|
||||||
|
echo -e "\nMD5 Checksums: ${RED}BAD!${RESET}\n" >&2
|
||||||
|
fi
|
||||||
|
|
||||||
|
# tally checks
|
||||||
|
if [[ $checksha256 == true && $checkmd5 == true ]]; then
|
||||||
|
echo -e "\nFile Integrity: VERIFIED! All Checksums: ${GREEN}OK!${RESET}\n"
|
||||||
|
exit 0 # exit success
|
||||||
|
else
|
||||||
|
echo -e "\nFile Integrity Check: ${RED}FAILED!${RESET}\n\tSee Above or See $error_log" >&2
|
||||||
|
exit 1 # exit general failure
|
||||||
|
fi
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# file paths
|
||||||
|
sha256_file_path=./checksums.sha256
|
||||||
|
md5_file_path=./checksums.md5
|
||||||
|
error_log=./checksums_error.log
|
||||||
|
|
||||||
|
# text colors
|
||||||
|
RED='\e[31m'
|
||||||
|
YELLOW='\033[33m'
|
||||||
|
GREEN='\e[32m'
|
||||||
|
RESET='\e[0m'
|
||||||
|
|
||||||
|
# output errors to error log
|
||||||
|
exec 2> >(tee -a "$error_log" >&2)
|
||||||
|
|
||||||
|
if [ -f "sha256_file_path" ]; then
|
||||||
|
echo -e "${YELLOW}Warn${RESET}: Existing $sha256_file_path Found, Deleting..."
|
||||||
|
rm -f "sha256_file_path"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "$md5_file_path" ]; then
|
||||||
|
echo -e "${YELLOW}Warn${RESET}: Existing $md5_file_path Found, Deleting..."
|
||||||
|
rm -f "$md5_file_path"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "$error_log" ]; then
|
||||||
|
echo -e "${YELLOW}Warn${RESET}: Existing $error_log Found, Deleting..."
|
||||||
|
rm -f "$error_log"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# notify user
|
||||||
|
echo "Calculating SHA256 and MD5 Checksums Recursively into $sha256_file_path and $md5_file_path\n\t${YELLOW}This May Take a Long Time!${RESET}"
|
||||||
|
# exclude git
|
||||||
|
if find . -type f ! -path "*/.git/*" ! -path "$error_log" ! -path "$md5_file_path" ! -path "$sha256_file_path" ! -path "$0" ! -path "./check_checksums.sh" -exec bash -c "file_path={} && sha256sum \$file_path 1>> $sha256_file_path && md5sum \$file_path 1>> $md5_file_path" \;; then
|
||||||
|
echo -e "\n${GREEN}SUCCESS!${RESET} Generated SHA256 and MD5 Checksums into $sha256_file_path and $md5_file_path Respectively!\n"
|
||||||
|
exit 0 # explicitly exit success
|
||||||
|
else
|
||||||
|
echo -e "\n${RED}FAIL!${RESET} Failed to Generate SHA256 and MD5 Checksums! Check Error Output or Check Error Log: $error_log\n" >&2
|
||||||
|
exit 1 # explicitly fail
|
||||||
|
fi
|
||||||
@@ -87,7 +87,7 @@ checkcode () {
|
|||||||
if [ $retcode -ne 0 ]; then
|
if [ $retcode -ne 0 ]; then
|
||||||
echo -e "\t\e[31mERROR!\033[0m Response Code: $retcode"
|
echo -e "\t\e[31mERROR!\033[0m Response Code: $retcode"
|
||||||
else
|
else
|
||||||
printf '\e[1;32mOK!\e[0m'
|
echo -e '\t\e[1;32mOK!\e[0m'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -121,7 +121,6 @@ user() {
|
|||||||
usermod -aG $group $new_username &> /dev/null
|
usermod -aG $group $new_username &> /dev/null
|
||||||
checkcode $?
|
checkcode $?
|
||||||
done
|
done
|
||||||
checkcode $?
|
|
||||||
echo "user: FINISHED"
|
echo "user: FINISHED"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# packages required: git trufflehog gitsecrets
|
||||||
|
|
||||||
|
github='https://github.com/InfoSecREDD/'
|
||||||
|
|
||||||
|
out_dir="$PWD/redd_repos"
|
||||||
|
mkdir -p "$out_dir"
|
||||||
|
|
||||||
|
repos=("DWipe" "wifipineapplepager-payloads" "ThreatVis" "RadioRef-Export" "REDDs-PCAP-Uploader" "Uptime-Monitor" "Uni-Adblock" "PolyZip" "CVE-Discord-Notify" "shlt-plugins" "DarkGPT-Lite" "RPT-Installer" "YOURLS-Security-Audit-Plugin" "YOURLS-IP-Info" "InfoSecREDD.github.io" "sharkjack-payloads" "ExPW" "DeLookup" "CheckSim" "sb" "REPG-Community-Payloads" "BTSM-Payloads" "Flip-pi" "InvisInk-Encoder" "REPG" "NET-UP" "Adafruit_WebSerial_ESPTool" "BadPS" "omg-payloads" "k" "Flipper" "REDD-Demo" "SecF0EncKey" "SIN-Main" "sj-webui-patch" "MHS35-lcd-64bit-rpi" "verifymd5" "proxmark3" "DHunter" "termux-pm3-helper" "Proxmark3-Amiibo-Emulate" "Termux-Helper-Script" "NFC-Cloner" "Handshake-Transfer" "shark-files" "rtl8812au" "SharkLib" "rtl8812AU_8821AU_linux" "NET-UP-modules" "boot-dev" "RPi-Tweaks" "auto-ssh" "HoppEye" "bashbunny-payloads" "CPUMINER" "bash-no-ip-updater")
|
||||||
|
|
||||||
|
# if [ -d "$out_dir" ]; then
|
||||||
|
# printf "deleting existing $out_dir..."
|
||||||
|
# rm -rf "$out_dir" > /dev/null 2>&1
|
||||||
|
# printf "$?\n"
|
||||||
|
#
|
||||||
|
# printf "remaking $out_dir..."
|
||||||
|
# mkdir -p "$out_dir"
|
||||||
|
# printf "$?\n"
|
||||||
|
# fi
|
||||||
|
#
|
||||||
|
# for repo in "${repos[@]}"; do
|
||||||
|
# printf "cloning $repo into $out_dir/$repo..."
|
||||||
|
# git clone --recursive "$github/$repo" "$out_dir/$repo" > /dev/null 2>&1
|
||||||
|
# printf "$?\n"
|
||||||
|
# done
|
||||||
|
|
||||||
|
for repo in "${repos[@]}"; do
|
||||||
|
cd "$out_dir/$repo"
|
||||||
|
trufflehog git file://. --relative
|
||||||
|
gitleaks detect -v
|
||||||
|
cd -
|
||||||
|
done
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e # we do noot tolerate failure here
|
||||||
|
|
||||||
|
# aint got no time for no bs
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo -e "ERROR\nUsage: hash_cred_check.sh <email or phone number>"
|
||||||
|
exit 1 # fail with error
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 256 bits of random shit, encoded as base64
|
||||||
|
salt="$(openssl rand -base64 32)"
|
||||||
|
|
||||||
|
# set credential
|
||||||
|
credential="$1"
|
||||||
|
|
||||||
|
# output hex bytes after doi one hell of a argon2id fuckery
|
||||||
|
hash=$(echo -n "$credential" | argon2 "$(base64 -d <<< $salt)" -id -t 8 -m 19 -p 2 -r)
|
||||||
|
|
||||||
|
echo "Hash: $hash"
|
||||||
|
echo "Salt: $salt"
|
||||||
|
echo "Credential: $credential"
|
||||||
|
echo 'Protocol: echo -n "$credential" | argon2 "$(base64 -d <<< $salt)" -id -t 8 -m 19 -p 2 -r'
|
||||||
|
echo
|
||||||
|
echo "Verify with: hash_cred_verify.sh '$credential' '$salt' '$hash'"
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e # mama didnt raise no bitch
|
||||||
|
|
||||||
|
# aint got no time for no bs
|
||||||
|
if [ -z "$1" -o -z "$2" -o -z "$3" ]; then
|
||||||
|
echo -e "ERROR\nUsage: hash_cred_check.sh '<email or phone number>' '<salt>' '<hash>'"
|
||||||
|
exit 1 # fail with error
|
||||||
|
fi
|
||||||
|
|
||||||
|
# set credential
|
||||||
|
credential="$1"
|
||||||
|
#set salt
|
||||||
|
salt="$2"
|
||||||
|
# set hash
|
||||||
|
hash="$3"
|
||||||
|
|
||||||
|
# debug
|
||||||
|
## echo -e "credential $credential"
|
||||||
|
## echo -e "salt $salt"
|
||||||
|
## echo -e "hash $hash"
|
||||||
|
|
||||||
|
# run da fuck
|
||||||
|
hash_check=$(echo -n "$credential" | argon2 "$(base64 -d <<< $salt)" -id -t 8 -m 19 -p 2 -r)
|
||||||
|
|
||||||
|
# debug
|
||||||
|
## echo -e "hash check $hash_check"
|
||||||
|
|
||||||
|
# compare demmm
|
||||||
|
if [[ $hash == $hash_check ]]; then
|
||||||
|
echo -e "\n\e[32mGOOD MATCH! \e[0m\n\t$credential \e[32mVERIFIED\e[0m\n"
|
||||||
|
else
|
||||||
|
echo -e "\n\e[31mBAD MATCH! \e[0m\n\t$credential \e[31mNOT VERIFIED\e[0m\n"
|
||||||
|
fi
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
# set -e # make sure da silly thing dont continue when there be errorZ
|
# set -e # make sure da silly thing dont continue when there be errorZ
|
||||||
|
|
||||||
# configs
|
# configs
|
||||||
gitRepo='https://github.com/PrincessPi3/general-scripts-and-system-ssssssetup.git'
|
gitRepo='https://git.thecoven.info/PrincessPi/general-scripts-and-system-ssssssetup.git'
|
||||||
tmpDir='/tmp/generalssss'
|
tmpDir='/tmp/generalssss'
|
||||||
tmp_customscripts_dir="$tmpDir/customscripts"
|
tmp_customscripts_dir="$tmpDir/customscripts"
|
||||||
finalDir='/usr/share/customscripts'
|
finalDir='/usr/share/customscripts'
|
||||||
@@ -214,6 +214,9 @@ fi
|
|||||||
# source $rcfile
|
# source $rcfile
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
|
$SHELL -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
|
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)"' >> "$rcfile"
|
||||||
|
|
||||||
# appeend thefuck to rcfile if not present
|
# appeend thefuck to rcfile if not present
|
||||||
grep -q thefuck $rcfile
|
grep -q thefuck $rcfile
|
||||||
thefuck_present=$?
|
thefuck_present=$?
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo "makin fuckin docker DIE to rebuild it"
|
||||||
|
|
||||||
|
sudo docker stop $(sudo docker ps -a -q) &>/dev/null
|
||||||
|
sudo docker rm -v $(sudo docker ps -a -q) &>/dev/null
|
||||||
|
sudo docker rmi $(sudo docker images -a -q) &>/dev/null
|
||||||
|
sudo docker volume rm $(sudo docker volume ls -q) &>/dev/null
|
||||||
|
sudo docker network rm $(sudo docker network ls -q) &>/dev/null
|
||||||
|
sudo systemctl stop docker &>/dev/null
|
||||||
|
sudo systemctl disable docker &>/dev/null
|
||||||
|
|
||||||
|
echo "docker containers and shit NUKED now purgan the apps fuuuck"
|
||||||
|
|
||||||
|
sudo apt update &>/dev/null
|
||||||
|
sudo apt purge docker.io docker-compose -y &>/dev/null
|
||||||
|
|
||||||
|
echo "docker shit fuckin purgedddd! ok now re-installin da docker shit"
|
||||||
|
|
||||||
|
sudo apt install -y docker.io docker-compose &>/dev/null
|
||||||
|
|
||||||
|
echo "re-enablin da docker shit ig"
|
||||||
|
|
||||||
|
sudo systemctl stop docker.service docker.socket &>/dev/null
|
||||||
|
sudo systemctl start docker.service docker.socket &>/dev/null
|
||||||
|
sudo systemctl enable docker.service docker.socket &>/dev/null
|
||||||
|
sudo systemctl status docker.service docker.socket &>/dev/null
|
||||||
|
|
||||||
|
echo "nukan docker-data"
|
||||||
|
|
||||||
|
|
||||||
|
echo "donesies docker back in black :3"
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# TEXT TO ASCII ART GENERATOR https://patorjk.com/software/taag/#p=display&f=Graceful&t=PRINCESS+PI&x=none&v=4&h=4&w=80&we=false
|
||||||
|
# IMAGE TO ASCII ART GENERATOR https://www.asciiart.eu/image-to-ascii
|
||||||
|
clear
|
||||||
|
piascii=$(cat << 'EOF'
|
||||||
|
=--= =----=
|
||||||
|
=--= -------=
|
||||||
|
=--= --------=
|
||||||
|
=----= --- =---------=
|
||||||
|
----= =--- ---==++=----:-----=
|
||||||
|
=-----= - ---- ========----::----=
|
||||||
|
=------= ----=+===-::::::::=+**++===+#
|
||||||
|
==-----=----=+**+=:::-======++******+==+##
|
||||||
|
=------=-=+*:::-=============+*****+==+*##
|
||||||
|
=------=+=:-++==--+=++===+====+***+===***=
|
||||||
|
=--------+*===---+===+===+++==+**=+==+**+-
|
||||||
|
=------=+===--=+++==++++%%*==**====+**+.- -
|
||||||
|
#=---=+====-=+++=+++*+.%+-==**=-==+**+.. --
|
||||||
|
#**+--+========++++#%#**=--==**--==+**=..: =-
|
||||||
|
*****+======+-+++*%%@@%=---==**--+=+*--:..- =
|
||||||
|
#*****=====+=-=++***#%#-----=**=-+=+*=---:.. %%
|
||||||
|
%****+====+=--=+++.:+*=-------=*-===**=---:..- %%
|
||||||
|
#***+=====------=:.-=----------==+=+**+---...: %%%%#%
|
||||||
|
#**+====:---------=-------------+=+=***=-....: %%##%%##
|
||||||
|
%***====..:---------------------==+=-****:.....+%#%%#%%%%#
|
||||||
|
#**+==*=...---------------:.----+==--=***=....##%#######%%
|
||||||
|
#***+=+*=...--------------:..:--=+=----+***:...#%###%%##%
|
||||||
|
#**+==+*=..:-------------:...:--++------=***.:+##%#%%%#% =
|
||||||
|
#***+==+**...:----------:.....:--+=------==**++##%#%%%%% =-
|
||||||
|
#***#+==+**=.................+*---+=------=#+=##%%##%%%#%=---
|
||||||
|
%#**#%*===+***-.....---...=+.:*#=----------=##*#%####%%%%#=----
|
||||||
|
%#### +===****-...: -+##=#%%+---------+###%%%%%%#%%%%%*-----
|
||||||
|
*===+****-..- %###%%%+------=*######%%%%%%%##%#*------
|
||||||
|
+===+****-.- %##%%%*-----#########%####%#####*-------
|
||||||
|
____ ____ __ __ _ ___ ____ ____ ____ ____ __
|
||||||
|
( _ \( _ \( )( ( \ / __)( __)/ ___)/ ___) ( _ \( )
|
||||||
|
) __/ ) / )( / /( (__ ) _) \___ \\___ \ ) __/ )(
|
||||||
|
(__) (__\_)(__)\_)__) \___)(____)(____/(____/ (__) (__)
|
||||||
|
EOF
|
||||||
|
);
|
||||||
|
|
||||||
|
echo -e "\033[35m$piascii\033[0m"
|
||||||
Executable → Regular
@@ -0,0 +1,86 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
clear
|
||||||
|
|
||||||
|
# Define an array of standard 16-color ANSI foreground codes
|
||||||
|
colors=(
|
||||||
|
"\e[31m" # Red
|
||||||
|
"\e[33m" # Yellow
|
||||||
|
"\e[32m" # Green
|
||||||
|
"\e[36m" # Cyan
|
||||||
|
"\e[34m" # Blue
|
||||||
|
"\e[35m" # Magenta
|
||||||
|
)
|
||||||
|
color_count=${#colors[@]}
|
||||||
|
color_index=0
|
||||||
|
|
||||||
|
shuffle_colors() {
|
||||||
|
local i tmp rand
|
||||||
|
# Start from the last element and move backwards
|
||||||
|
for ((i=${#colors[@]}-1; i>0; i--)); do
|
||||||
|
# Generate a random index between 0 and i (inclusive)
|
||||||
|
rand=$(( RANDOM % (i + 1) ))
|
||||||
|
|
||||||
|
# Swap elements at index 'i' and 'rand'
|
||||||
|
tmp="${colors[i]}"
|
||||||
|
colors[i]="${colors[rand]}"
|
||||||
|
colors[rand]="$tmp"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
# randomize dem color postions
|
||||||
|
shuffle_colors
|
||||||
|
|
||||||
|
# Reset code to clear colors at the end of output
|
||||||
|
reset="\e[0m"
|
||||||
|
read -r -d '' ascii_art << 'EOF'
|
||||||
|
--= =----=
|
||||||
|
=--= -------=
|
||||||
|
=--= --------=
|
||||||
|
=----= --- =---------=
|
||||||
|
----= =--- ---==++=----:-----=
|
||||||
|
=-----= - ---- ========----::----=
|
||||||
|
=------= ----=+===-::::::::=+**++===+#
|
||||||
|
==-----=----=+**+=:::-======++******+==+##
|
||||||
|
=------=-=+*:::-=============+*****+==+*##
|
||||||
|
=------=+=:-++==--+=++===+====+***+===***=
|
||||||
|
=--------+*===---+===+===+++==+**=+==+**+-
|
||||||
|
=------=+===--=+++==++++%%*==**====+**+.- -
|
||||||
|
#=---=+====-=+++=+++*+.%+-==**=-==+**+.. --
|
||||||
|
#**+--+========++++#%#**=--==**--==+**=..: =-
|
||||||
|
*****+======+-+++*%%@@%=---==**--+=+*--:..- =
|
||||||
|
#*****=====+=-=++***#%#-----=**=-+=+*=---:.. %%
|
||||||
|
%****+====+=--=+++.:+*=-------=*-===**=---:..- %%
|
||||||
|
#***+=====------=:.-=----------==+=+**+---...: %%%%#%
|
||||||
|
#**+====:---------=-------------+=+=***=-....: %%##%%##
|
||||||
|
%***====..:---------------------==+=-****:.....+%#%%#%%%%#
|
||||||
|
#**+==*=...---------------:.----+==--=***=....##%#######%%
|
||||||
|
#***+=+*=...--------------:..:--=+=----+***:...#%###%%##%
|
||||||
|
#**+==+*=..:-------------:...:--++------=***.:+##%#%%%#% =
|
||||||
|
#***+==+**...:----------:.....:--+=------==**++##%#%%%%% =-
|
||||||
|
#***#+==+**=.................+*---+=------=#+=##%%##%%%#%=---
|
||||||
|
%#**#%*===+***-.....---...=+.:*#=----------=##*#%####%%%%#=----
|
||||||
|
%#### +===****-...: -+##=#%%+---------+###%%%%%%#%%%%%*-----
|
||||||
|
*===+****-..- %###%%%+------=*######%%%%%%%##%#*------
|
||||||
|
+===+****-.- %##%%%*-----#########%####%#####*-------
|
||||||
|
____ ____ __ __ _ ___ ____ ____ ____ ____ __
|
||||||
|
( _ \( _ \( )( ( \ / __)( __)/ ___)/ ___) ( _ \( )
|
||||||
|
) __/ ) / )( / /( (__ ) _) \___ \\___ \ ) __/ )(
|
||||||
|
(__) (__\_)(__)\_)__) \___)(____)(____/(____/ (__) (__)
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Process the art character-by-character
|
||||||
|
for (( i=0; i<${#ascii_art}; i++ )); do
|
||||||
|
char="${ascii_art:$i:1}"
|
||||||
|
|
||||||
|
# If the character is a space or a newline, print it raw without wasting a color
|
||||||
|
if [[ "$char" == " " || "$char" == $'\n' ]]; then
|
||||||
|
printf "%s" "$char"
|
||||||
|
else
|
||||||
|
# Assign a color, print the letter, and rotate the index cycle
|
||||||
|
printf "%b%s" "${colors[$color_index]}" "$char"
|
||||||
|
color_index=$(( (color_index + 1) % color_count ))
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Always clear the terminal color state back to default at the end
|
||||||
|
printf "%b\n" "$reset"
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
if [ ! -f "$1" ]; then
|
||||||
|
echo "FAIL: $1 is Not a File!" >&2
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
sample="$1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# submit da fucker ig
|
||||||
|
curl -X POST -H "X-ApiKey: $VIRUSTOTAL_API_KEY" -F "file=@$sample" https://www.virustotal.com/api/v3/files
|
||||||
|
|
||||||
|
# make da sha256 for da fookin link ig for to make da fookin link jfc
|
||||||
|
link="https://www.virustotal.com/gui/file/$(sha256sum $sample | awk '{print $1}')"
|
||||||
|
|
||||||
|
# fookin show the fuuuckin link fuuck
|
||||||
|
echo -e "\nVirustotal Link: $link\n"
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
exec 2> >(tee -a /mnt/c/Users/human/Downloads/github-migrate-error-log.txt)
|
||||||
|
|
||||||
|
echo "Migrating repos from file list!"
|
||||||
|
if [ -f /mnt/c/Users/human/Downloads/github-migrate-error-log.txt ]; then
|
||||||
|
echo -e "\t error log found, deleting"
|
||||||
|
rm -f /mnt/c/Users/human/Downloads/github-migrate-error-log.txt
|
||||||
|
fi
|
||||||
|
|
||||||
|
while IFS= read -r repo; do
|
||||||
|
local_repo="/mnt/c/Users/human/OneDrive/Documents/Git/${repo}"
|
||||||
|
remote_repo="git-gitea:PrincessPi/${repo}.git"
|
||||||
|
remote_repo_page="https://github.com/PrincessPi3/${repo}"
|
||||||
|
|
||||||
|
echo -e "\nMigrating repo at $local_repo from $remote_repo_page to $remote_repo"
|
||||||
|
|
||||||
|
if [ ! -d $local_repo ]; then
|
||||||
|
echo -e "\tFAIL! $local_repo not found! carrying on to next one" >&2
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d $local_repo/.git ]; then
|
||||||
|
echo -e "\tNo .git found, initing it"
|
||||||
|
git init
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "\ttrying creating remote repo..."
|
||||||
|
if ! tea-cli repos create --init --name $repo --login WSL; then
|
||||||
|
echo -e "\t\t$repo already exists on gitea! not skipping!"
|
||||||
|
# continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "\tchagging dir to $local_repo"
|
||||||
|
cd "$local_repo"
|
||||||
|
|
||||||
|
echo -e "\ttrying git status..."
|
||||||
|
if ! git status; then
|
||||||
|
echo -e "\t\tstatus messy: trying git pull..."
|
||||||
|
if ! git pull; then
|
||||||
|
echo -e "\t\t\tforcably syncing with old remote, preferring local..."
|
||||||
|
echo -e "\t\t\t\tgit adding..."
|
||||||
|
git add .
|
||||||
|
echo -e "\t\t\t\tgit comitting..."
|
||||||
|
git commit -m "rebase from local"
|
||||||
|
echo -e "\t\t\t\t git force pushing"
|
||||||
|
git push -f
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "\ttrying setting remote origin..."
|
||||||
|
if ! git remote set-url origin $remote_repo; then
|
||||||
|
echo -e "\t\tadding remote origin..."
|
||||||
|
git remote add origin $remote_repo
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "\tcreating empty file migration.tmp"
|
||||||
|
touch migration.tmp
|
||||||
|
|
||||||
|
echo -e "\tgit adding and git comitting"
|
||||||
|
git add .
|
||||||
|
git commit -m "migration"
|
||||||
|
|
||||||
|
echo -e "\tTrying pushing (origin main...)"
|
||||||
|
if ! git push -u origin main -f; then
|
||||||
|
echo -e "\t\tTrying push (origin master)..."
|
||||||
|
git push -u origin master -f
|
||||||
|
fi
|
||||||
|
done < /mnt/c/Users/human/Downloads/repos-from-github.txt
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
Media-Viewer
|
||||||
|
fuck_git_downloader
|
||||||
|
Anonymous_Cryptographic_Proofs_And_Auth
|
||||||
|
ObsidianNotes
|
||||||
|
minicomhelper
|
||||||
|
Sex-Toy-Hackin-Pope
|
||||||
|
Uni-Adblock
|
||||||
|
betterhiddencrypto
|
||||||
|
PrincessPiTracker
|
||||||
|
GoogleFindMyTools
|
||||||
|
Breachsilly
|
||||||
|
nuke_me_NOW
|
||||||
|
SillyFilly-Hardware-Attack-Tool
|
||||||
|
flipperzero-firmware
|
||||||
|
Job-Czar
|
||||||
|
HelloWorld2.0-Python3
|
||||||
|
default-passwords-masterlist
|
||||||
|
Windows-Reverse-Engineering-Forensics-Malware-Analysis-Environment
|
||||||
|
I-will-slap-your-shit
|
||||||
|
pt-sillyfilly
|
||||||
|
android-hackhackin
|
||||||
|
bd_crack
|
||||||
|
esp-bootrom-exploit
|
||||||
|
ESP32-C5-Research
|
||||||
|
Sillyfilly-espdumper
|
||||||
|
sillytty
|
||||||
|
Princess-Pi-s-Magical-RevShells
|
||||||
|
EvilCrowCable-Wind-Princess-Pi-Ver
|
||||||
|
sillyfillyTamaControl.miocropython
|
||||||
|
Find-and-Write-BadUSB-Scripts
|
||||||
|
PicoLogger-Hardware-Keylogger
|
||||||
|
DELILAHS_FIST
|
||||||
|
gremlin-theorem
|
||||||
|
ASS
|
||||||
|
hiddencrypto
|
||||||
|
Flipper-Zero-Guides-Resources
|
||||||
|
SillyfillyESPDumper
|
||||||
|
XRLinuxDriver
|
||||||
|
sillyfilly-exeloader
|
||||||
|
PiPicoPATLFGGGGG
|
||||||
|
OpenCybersecLessonPlan
|
||||||
|
ffuf-stuff
|
||||||
|
Sillyfilly-CAN
|
||||||
|
403-bypass-finder
|
||||||
|
crackhead_proxy
|
||||||
|
getting-started-in-cybersec
|
||||||
|
linode-nextcloud-nixos
|
||||||
|
TamagotchiHackingNuggetTeam-7
|
||||||
|
megapasslist
|
||||||
|
TamagotchiHackingNuggetTeam7
|
||||||
|
esp_quick_info_dump
|
||||||
|
android-hackhackin
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
balzac release 1.0
|
||||||
Reference in New Issue
Block a user