You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 21, 2021. It is now read-only.
Copy file name to clipboardexpand all lines: Mayhem/Mayhem.psm1
+91-89
Original file line number
Diff line number
Diff line change
@@ -3,109 +3,109 @@ function Set-MasterBootRecord
3
3
<#
4
4
.SYNOPSIS
5
5
6
-
Proof of concept code that overwrites the master boot record with the
7
-
message of your choice.
8
-
9
-
PowerSploit Function: Set-MasterBootRecord
10
-
Author: Matthew Graeber (@mattifestation) and Chris Campbell (@obscuresec)
11
-
License: BSD 3-Clause
12
-
Required Dependencies: None
13
-
Optional Dependencies: None
14
-
6
+
Proof of concept code that overwrites the master boot record with the
7
+
message of your choice.
8
+
9
+
PowerSploit Function: Set-MasterBootRecord
10
+
Author: Matthew Graeber (@mattifestation) and Chris Campbell (@obscuresec)
11
+
License: BSD 3-Clause
12
+
Required Dependencies: None
13
+
Optional Dependencies: None
14
+
15
15
.DESCRIPTION
16
16
17
-
Set-MasterBootRecord is proof of concept code designed to show that it is
18
-
possible with PowerShell to overwrite the MBR. This technique was taken
19
-
from a public malware sample. This script is inteded solely as proof of
20
-
concept code.
17
+
Set-MasterBootRecord is proof of concept code designed to show that it is
18
+
possible with PowerShell to overwrite the MBR. This technique was taken
19
+
from a public malware sample. This script is inteded solely as proof of
20
+
concept code.
21
21
22
22
.PARAMETERBootMessage
23
23
24
-
Specifies the message that will be displayed upon making your computer a brick.
24
+
Specifies the message that will be displayed upon making your computer a brick.
25
25
26
26
.PARAMETERRebootImmediately
27
27
28
-
Reboot the machine immediately upon overwriting the MBR.
28
+
Reboot the machine immediately upon overwriting the MBR.
29
29
30
30
.PARAMETERForce
31
31
32
-
Suppress the warning prompt.
32
+
Suppress the warning prompt.
33
33
34
34
.EXAMPLE
35
35
36
-
Set-MasterBootRecord -BootMessage 'This is what happens when you fail to defend your network. #CCDC'
36
+
Set-MasterBootRecord -BootMessage 'This is what happens when you fail to defend your network. #CCDC'
37
37
38
38
.NOTES
39
39
40
-
Obviously, this will only work if you have a master boot record to
41
-
overwrite. This won't work if you have a GPT (GUID partition table)
42
-
#>
40
+
Obviously, this will only work if you have a master boot record to
41
+
overwrite. This won't work if you have a GPT (GUID partition table).
43
42
44
-
<#
45
43
This code was inspired by the Gh0st RAT source code seen here (acquired from: http://webcache.googleusercontent.com/search?q=cache:60uUuXfQF6oJ:read.pudn.com/downloads116/sourcecode/hack/trojan/494574/gh0st3.6_%25E6%25BA%2590%25E4%25BB%25A3%25E7%25A0%2581/gh0st/gh0st.cpp__.htm+&cd=3&hl=en&ct=clnk&gl=us):
0 commit comments