mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-26 22:52:06 +00:00
228 lines
11 KiB
Markdown
228 lines
11 KiB
Markdown
# Mbinu za Stego
|
|
|
|
<details>
|
|
|
|
<summary><strong>Jifunze kuhusu kudukua AWS kutoka sifuri hadi shujaa na</strong> <a href="https://training.hacktricks.xyz/courses/arte"><strong>htARTE (Mtaalam wa Timu Nyekundu ya AWS ya HackTricks)</strong></a><strong>!</strong></summary>
|
|
|
|
Njia nyingine za kusaidia HackTricks:
|
|
|
|
* Ikiwa unataka kuona **kampuni yako ikionekana kwenye HackTricks** au **kupakua HackTricks kwa PDF** Angalia [**MIPANGO YA KUJIUNGA**](https://github.com/sponsors/carlospolop)!
|
|
* Pata [**bidhaa rasmi za PEASS & HackTricks**](https://peass.creator-spring.com)
|
|
* Gundua [**Familia ya PEASS**](https://opensea.io/collection/the-peass-family), mkusanyiko wetu wa [**NFTs**](https://opensea.io/collection/the-peass-family) za kipekee
|
|
* **Jiunge na** 💬 [**Kikundi cha Discord**](https://discord.gg/hRep4RUj7f) au [**kikundi cha telegram**](https://t.me/peass) au **tufuate** kwenye **Twitter** 🐦 [**@carlospolopm**](https://twitter.com/hacktricks\_live)**.**
|
|
* **Shiriki mbinu zako za kudukua kwa kuwasilisha PRs kwa** [**HackTricks**](https://github.com/carlospolop/hacktricks) na [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) repos za github.
|
|
|
|
</details>
|
|
|
|
**Kikundi cha Usalama cha Try Hard**
|
|
|
|
<figure><img src="/.gitbook/assets/telegram-cloud-document-1-5159108904864449420.jpg" alt=""><figcaption></figcaption></figure>
|
|
|
|
{% embed url="https://discord.gg/tryhardsecurity" %}
|
|
|
|
***
|
|
|
|
## **Kuchambua Data kutoka kwenye Faili**
|
|
|
|
### **Binwalk**
|
|
|
|
Zana ya kutafuta faili za binary kwa faili na data iliyofichwa. Inasakinishwa kupitia `apt` na chanzo chake kinapatikana kwenye [GitHub](https://github.com/ReFirmLabs/binwalk).
|
|
```bash
|
|
binwalk file # Displays the embedded data
|
|
binwalk -e file # Extracts the data
|
|
binwalk --dd ".*" file # Extracts all data
|
|
```
|
|
### **Kwanza kabisa**
|
|
|
|
Inapata faili kulingana na vichwa vyao na miguu, inayofaa kwa picha za png. Imewekwa kupitia `apt` na chanzo chake kwenye [GitHub](https://github.com/korczis/foremost).
|
|
```bash
|
|
foremost -i file # Extracts data
|
|
```
|
|
### **Exiftool**
|
|
|
|
Inasaidia kuangalia metadata ya faili, inapatikana [hapa](https://www.sno.phy.queensu.ca/\~phil/exiftool/).
|
|
```bash
|
|
exiftool file # Shows the metadata
|
|
```
|
|
### **Exiv2**
|
|
|
|
Sawa na exiftool, kwa kuangalia metadata. Inaweza kusakinishwa kupitia `apt`, chanzo kiko kwenye [GitHub](https://github.com/Exiv2/exiv2), na ina [tovuti rasmi](http://www.exiv2.org/).
|
|
```bash
|
|
exiv2 file # Shows the metadata
|
|
```
|
|
### **Faili**
|
|
|
|
Tambua aina ya faili unayoshughulika nayo.
|
|
|
|
### **Maneno**
|
|
|
|
Chambua maneno yanayoweza kusomwa kutoka kwenye faili, ukitumia mipangilio mbalimbali ya uendeshaji ili kuchuja matokeo.
|
|
```bash
|
|
strings -n 6 file # Extracts strings with a minimum length of 6
|
|
strings -n 6 file | head -n 20 # First 20 strings
|
|
strings -n 6 file | tail -n 20 # Last 20 strings
|
|
strings -e s -n 6 file # 7bit strings
|
|
strings -e S -n 6 file # 8bit strings
|
|
strings -e l -n 6 file # 16bit strings (little-endian)
|
|
strings -e b -n 6 file # 16bit strings (big-endian)
|
|
strings -e L -n 6 file # 32bit strings (little-endian)
|
|
strings -e B -n 6 file # 32bit strings (big-endian)
|
|
```
|
|
### **Kulinganisha (cmp)**
|
|
|
|
Inatumika kulinganisha faili iliyobadilishwa na toleo lake la asili lililopatikana mtandaoni.
|
|
```bash
|
|
cmp original.jpg stego.jpg -b -l
|
|
```
|
|
## **Kuondoa Data Iliyofichwa kwenye Matini**
|
|
|
|
### **Data Iliyofichwa kwenye Nafasi**
|
|
|
|
Vipengee visivyoonekana katika nafasi zisizo na maudhui yanaweza kuficha taarifa. Ili kuchambua data hii, tembelea [https://www.irongeek.com/i.php?page=security/unicode-steganography-homoglyph-encoder](https://www.irongeek.com/i.php?page=security/unicode-steganography-homoglyph-encoder).
|
|
|
|
## **Kuondoa Data kutoka kwenye Picha**
|
|
|
|
### **Kutambua Maelezo ya Picha kwa Kutumia GraphicMagick**
|
|
|
|
[GraphicMagick](https://imagemagick.org/script/download.php) inatumika kutambua aina za faili za picha na kutambua uharibifu wa uwezekano. Tekeleza amri ifuatayo kuchunguza picha:
|
|
```bash
|
|
./magick identify -verbose stego.jpg
|
|
```
|
|
Kujaribu kurekebisha picha iliyoharibika, kuongeza maoni ya metadata kunaweza kusaidia:
|
|
```bash
|
|
./magick mogrify -set comment 'Extraneous bytes removed' stego.jpg
|
|
```
|
|
### **Steghide kwa Kuficha Data**
|
|
|
|
Steghide inarahisisha kuficha data ndani ya faili za `JPEG, BMP, WAV, na AU`, inayoweza kuingiza na kutoa data iliyofichwa kwa njia ya kielelezo. Usakinishaji ni wa moja kwa moja kwa kutumia `apt`, na [micho yake ya chanzo inapatikana kwenye GitHub](https://github.com/StefanoDeVuono/steghide).
|
|
|
|
**Amri:**
|
|
|
|
* `steghide info file` inaonyesha ikiwa faili ina data iliyofichwa.
|
|
* `steghide extract -sf file [--passphrase password]` inatoa data iliyofichwa, nenosiri ni hiari.
|
|
|
|
Kwa uchimbaji wa wavuti, tembelea [tovuti hii](https://futureboy.us/stegano/decinput.html).
|
|
|
|
**Shambulio la Kuforce la Stegcracker:**
|
|
|
|
* Ili kujaribu kuvunja nenosiri kwenye Steghide, tumia [stegcracker](https://github.com/Paradoxis/StegCracker.git) kama ifuatavyo:
|
|
```bash
|
|
stegcracker <file> [<wordlist>]
|
|
```
|
|
### **zsteg kwa Faili za PNG na BMP**
|
|
|
|
zsteg inajitolea kufunua data iliyofichwa kwenye faili za PNG na BMP. Usanidi unafanywa kupitia `gem install zsteg`, na chanzo chake kiko kwenye [GitHub](https://github.com/zed-0xff/zsteg).
|
|
|
|
**Amri:**
|
|
|
|
* `zsteg -a faili` inatumia njia zote za ugunduzi kwenye faili.
|
|
* `zsteg -E faili` inabainisha mzigo wa data kwa uchimbaji wa data.
|
|
|
|
### **StegoVeritas na Stegsolve**
|
|
|
|
**stegoVeritas** huchunguza metadata, hufanya mabadiliko kwenye picha, na kutumia nguvu ya LSB miongoni mwa sifa zingine. Tumia `stegoveritas.py -h` kwa orodha kamili ya chaguo na `stegoveritas.py stego.jpg` kutekeleza uchunguzi wote.
|
|
|
|
**Stegsolve** inatumia vichujio vya rangi mbalimbali kufunua maandishi au ujumbe uliofichwa ndani ya picha. Inapatikana kwenye [GitHub](https://github.com/eugenekolo/sec-tools/tree/master/stego/stegsolve/stegsolve).
|
|
|
|
### **FFT kwa Ugunduzi wa Yaliyofichwa**
|
|
|
|
Mbinu za Fast Fourier Transform (FFT) zinaweza kufunua yaliyofichwa kwenye picha. Vyanzo muhimu ni pamoja na:
|
|
|
|
* [Demos ya EPFL](http://bigwww.epfl.ch/demo/ip/demos/FFT/)
|
|
* [Ejectamenta](https://www.ejectamenta.com/Fourifier-fullscreen/)
|
|
* [FFTStegPic kwenye GitHub](https://github.com/0xcomposure/FFTStegPic)
|
|
|
|
### **Stegpy kwa Faili za Sauti na Picha**
|
|
|
|
Stegpy inaruhusu kuingiza habari kwenye faili za picha na sauti, ikisaidia muundo kama PNG, BMP, GIF, WebP, na WAV. Inapatikana kwenye [GitHub](https://github.com/dhsdshdhk/stegpy).
|
|
|
|
### **Pngcheck kwa Uchambuzi wa Faili za PNG**
|
|
```bash
|
|
apt-get install pngcheck
|
|
pngcheck stego.png
|
|
```
|
|
### **Zana Zaidi kwa Uchambuzi wa Picha**
|
|
|
|
Kwa uchunguzi zaidi, tafadhali tembelea:
|
|
|
|
* [Magic Eye Solver](http://magiceye.ecksdee.co.uk/)
|
|
* [Uchambuzi wa Kiwango cha Hitilafu ya Picha](https://29a.ch/sandbox/2012/imageerrorlevelanalysis/)
|
|
* [Outguess](https://github.com/resurrecting-open-source-projects/outguess)
|
|
* [OpenStego](https://www.openstego.com/)
|
|
* [DIIT](https://diit.sourceforge.net/)
|
|
|
|
## **Kuchambua Data kutoka kwa Audios**
|
|
|
|
**Steganografia ya sauti** inatoa njia ya kipekee ya kuficha habari ndani ya faili za sauti. Zana tofauti hutumiwa kwa kuingiza au kupata maudhui yaliyofichwa.
|
|
|
|
### **Steghide (JPEG, BMP, WAV, AU)**
|
|
|
|
Steghide ni zana yenye uwezo wa kuficha data katika faili za JPEG, BMP, WAV, na AU. Maelekezo ya kina yanapatikana katika [hati ya mbinu za stego](stego-tricks.md#steghide).
|
|
|
|
### **Stegpy (PNG, BMP, GIF, WebP, WAV)**
|
|
|
|
Zana hii inaweza kutumika na aina mbalimbali za muundo ikiwa ni pamoja na PNG, BMP, GIF, WebP, na WAV. Kwa maelezo zaidi, tazama [sehemu ya Stegpy](stego-tricks.md#stegpy-png-bmp-gif-webp-wav).
|
|
|
|
### **ffmpeg**
|
|
|
|
ffmpeg ni muhimu kwa kutathmini uadilifu wa faili za sauti, kutoa maelezo ya kina na kutambua hitilafu yoyote.
|
|
```bash
|
|
ffmpeg -v info -i stego.mp3 -f null -
|
|
```
|
|
### **WavSteg (WAV)**
|
|
|
|
WavSteg inafanya vizuri katika kuficha na kutoa data ndani ya faili za WAV kwa kutumia mkakati wa biti ya kimaanisha kidogo. Inapatikana kwenye [GitHub](https://github.com/ragibson/Steganography#WavSteg). Amri zinajumuisha:
|
|
```bash
|
|
python3 WavSteg.py -r -b 1 -s soundfile -o outputfile
|
|
|
|
python3 WavSteg.py -r -b 2 -s soundfile -o outputfile
|
|
```
|
|
### **Deepsound**
|
|
|
|
Deepsound inaruhusu kufanya encryption na kugundua habari ndani ya faili za sauti kwa kutumia AES-256. Inaweza kupakuliwa kutoka [ukurasa rasmi](http://jpinsoft.net/deepsound/download.aspx).
|
|
|
|
### **Sonic Visualizer**
|
|
|
|
Zana muhimu kwa uchunguzi wa kivisuali na kianalitiki wa faili za sauti, Sonic Visualizer inaweza kufunua vipengele vilivyofichwa visivyoweza kugunduliwa kwa njia nyingine. Tembelea [tovuti rasmi](https://www.sonicvisualiser.org/) kwa maelezo zaidi.
|
|
|
|
### **DTMF Tones - Dial Tones**
|
|
|
|
Kugundua sauti za DTMF katika faili za sauti kunaweza kufanikiwa kupitia zana mtandaoni kama [hii DTMF detector](https://unframework.github.io/dtmf-detect/) na [DialABC](http://dialabc.com/sound/detect/index.html).
|
|
|
|
## **Mbinu Nyingine**
|
|
|
|
### **Binary Length SQRT - QR Code**
|
|
|
|
Data ya binary ambayo inapata mraba wa nambari kamili inaweza kuwakilisha QR code. Tumia sehemu hii kuangalia:
|
|
```python
|
|
import math
|
|
math.sqrt(2500) #50
|
|
```
|
|
### **Tafsiri ya Braille**
|
|
|
|
Kwa kutafsiri Braille, [Mwandishi wa Braille wa Branah](https://www.branah.com/braille-translator) ni rasilimali nzuri.
|
|
|
|
## **Vyanzo**
|
|
|
|
* [**https://0xrick.github.io/lists/stego/**](https://0xrick.github.io/lists/stego/)
|
|
* [**https://github.com/DominicBreuker/stego-toolkit**](https://github.com/DominicBreuker/stego-toolkit)
|
|
|
|
**Kikundi cha Usalama cha Try Hard**
|
|
|
|
<figure><img src="/.gitbook/assets/telegram-cloud-document-1-5159108904864449420.jpg" alt=""><figcaption></figcaption></figure>
|
|
|
|
{% embed url="https://discord.gg/tryhardsecurity" %}
|
|
|
|
<details>
|
|
|
|
<summary><strong>Jifunze kuhusu kudukua AWS kutoka sifuri hadi shujaa na</strong> <a href="https://training.hacktricks.xyz/courses/arte"><strong>htARTE (Mtaalam wa Timu Nyekundu ya AWS ya HackTricks)</strong></a><strong>!</strong></summary>
|
|
|
|
Njia nyingine za kusaidia HackTricks:
|
|
|
|
* Ikiwa unataka kuona **kampuni yako ikitangazwa kwenye HackTricks** au **kupakua HackTricks kwa PDF** Angalia [**MIPANGO YA KUJIUNGA**](https://github.com/sponsors/carlospolop)!
|
|
* Pata [**swag rasmi wa PEASS & HackTricks**](https://peass.creator-spring.com)
|
|
* Gundua [**Familia ya PEASS**](https://opensea.io/collection/the-peass-family), mkusanyiko wetu wa [**NFTs**](https://opensea.io/collection/the-peass-family) ya kipekee
|
|
* **Jiunge na** 💬 [**Kikundi cha Discord**](https://discord.gg/hRep4RUj7f) au kikundi cha [**telegram**](https://t.me/peass) au **tufuate** kwenye **Twitter** 🐦 [**@carlospolopm**](https://twitter.com/hacktricks\_live)**.**
|
|
* **Shiriki mbinu zako za kudukua kwa kuwasilisha PRs kwa** [**HackTricks**](https://github.com/carlospolop/hacktricks) na [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) repos za github.
|
|
|
|
</details>
|