Built Different - 100 Every picture has an angle. ...

Erstellt am: 5. Dezember 2026

Beantwortet mit GPT-6.2 Thinking von Chat01

Frage

DT20268709883_Built_Different-AcFffAA4A5.zip

Built Different - 100
Every picture has an angle. This one has an attitude. It was never meant to be like the others. It was built different. find the flag

Antwort

I’ll inspect the ZIP and check the image for hidden data, unusual metadata, and encoding tricks.

Python

python
import zipfile, os, pathlib, struct, binascii p='/mnt/data/DT20268709883_Built_Different-AcFffAA4A5.zip' z=zipfile.ZipFile(p) [(x.filename,x.file_size,x.compress_size) for x in z.infolist()] [('AcFffAA4A5.jpg', 404336, 403403)]

Python

python
from PIL import Image, ExifTags import io, re data=z.read(z.namelist()[0]) im=Image.open(io.BytesIO(data)) print(im.size, im.mode, im.info.keys(), im.getexif()) print(data[:100].hex(), data[-100:].hex(),data.rfind(b'\xff\xd9'),len(data)) print([(m.start(),m.group()[:150]) for m in re.finditer(rb'[\x20-\x7e]{12,}',data)][:80]) display(im.resize((min(im.width,800),int(im.height*min(im.width,800)/im.width))))

Python

python
import shutil for t in ['exiftool','steghide','stegseek','binwalk','jpeginfo','identify','convert','zbarimg','strings','outguess','jsteg','foremost']: print(t,shutil.which(t)) # jpeg segments pos=2 while pos<len(data): if data[pos]!=255: break mark=data[pos+1]; sz=int.from_bytes(data[pos+2:pos+4],'big') print(hex(pos),hex(mark),sz,data[pos+4:pos+min(sz+2,35)].hex()) if mark==0xda: break pos+=sz+2

Python

python
import numpy as np from PIL import ImageOps, ImageEnhance a=np.array(im) # montage channel bitplanes reduced (max pool via resize) ims=[] for ch in range(3): for bit in range(4): x=Image.fromarray(((a[:,:,ch]>>bit)&1).astype('uint8')*255).resize((200,285)) ims.append(x) m=Image.new('L',(800,855)) for i,x in enumerate(ims):m.paste(x,((i%4)*200,(i//4)*285)) display(m) # bottom contrast per channel crop=im.crop((0,1000,1024,1461)) m=Image.new('RGB',(768,346)) for i,ch in enumerate(crop.split()): m.paste(ImageOps.autocontrast(ch).resize((256,115)),(0,i*115)) # full m.paste(ImageOps.equalize(ch).resize((256,115)),(256,i*115)) # diff d=np.diff(np.array(ch).astype(int),axis=1) m.paste(Image.fromarray(np.uint8(np.clip(d*25+128,0,255))).resize((256,115)),(512,i*115)) display(m)

Python

python
from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES=True for h in [1472,1536,1600,1800,2048]: d=bytearray(data); d[0xd3:0xd5]=h.to_bytes(2,'big') j=Image.open(io.BytesIO(d)); j.load() print(h,j.size,np.asarray(j)[-1,0], np.asarray(j)[1460,0]) if h==1600: display(j.resize((512,800)))

Python

python
d=bytearray(data);d[0xd3:0xd5]=(1536).to_bytes(2,'big') j=Image.open(io.BytesIO(d));j.load() display(j.crop((0,1450,1024,1536)))

Gedanke

Inspected archive and image data for hidden information

Worked for 23s

Antwort

Text version

Flag found:

HQ11{4e791f19663458dae743b8892cf44361}

How it was hidden

The JPEG's height was deliberately modified to conceal the bottom of the image.

  • Original declared height: 1461 pixels
  • Restored height: 1536 pixels
  • JPEG header offset: 0xD3
  • Changed hexadecimal value: 05 B5 → 06 00

Restoring the height revealed red text at the bottom of the image containing the flag.

Technique: JPEG header manipulation (SOF0 height modification).

Frage

report k liye v dikha do hm khud kali se command run kr k ss le lenge

Gedanke

Inspected archive contents and repaired JPEG dimensions

Worked for 11s

Antwort

Built Different – 100 Points

Category: Digital Forensics / Steganography Technique: JPEG Header Manipulation

Kali Linux mein niche diye gaye commands step-by-step run karo aur har step ka screenshot le lena. Maine original ZIP file par method verify kar liya hai.

Step 1: Extract the ZIP file

bash
unzip DT20268709883_Built_Different-AcFffAA4A5.zip
bash
ls -lh

Extracted file: AcFffAA4A5.jpg

Screenshot 1: ZIP extraction and file listing.

Step 2: Analyze the image

bash
file AcFffAA4A5.jpg
bash
exiftool AcFffAA4A5.jpg

Image dimensions:

PropertyValue
File typeJPEG
Width1024 pixels
Height1461 pixels
EncodingBaseline JPEG

Screenshot 2: Image metadata and dimensions.

Step 3: Analyze the hexadecimal header

bash
xxd -g 1 AcFffAA4A5.jpg | head -n 20

JPEG ke SOF0 marker (FF C0) ko identify karo.

Exact location dekhne ke liye:

bash
xxd -g 1 -s 0xce -l 19 AcFffAA4A5.jpg

Expected output:

text
000000ce: ff c0 00 11 08 05 b5 04 00 03 01 11 00 02 11 01 000000de: 03 11 01

JPEG SOF0 header structure


Modified height

05 B5

1461 pixels

Restored height

06 00

1536 pixels

Screenshot 3: Hexadecimal header showing the modified height.

Step 4: Restore the image height

Original image ki copy bana lo:

bash
cp AcFffAA4A5.jpg fixed.jpg

Offset 0xD3 par height modify karo using dd:

bash
printf '\x06\x00' | dd of=fixed.jpg bs=1 seek=$((0xD3)) conv=notrunc

Changes verify karo:

bash
xxd -g 1 -s 0xce -l 19 fixed.jpg
bash
file fixed.jpg

Ab image dimensions 1024 × 1536 ho jayengi.

Screenshot 4: Header modification command and restored dimensions.

Step 5: Open the recovered image

bash
xdg-open fixed.jpg

Image ke bottom mein red color mein hidden flag visible hoga.

Screenshot 5: Recovered image showing the flag.

View verified recovered image

Step 6: Recovered flag

HQ11{4e791f19663458dae743b8892cf44361}

Report Description (English)

:::writing{variant="document" id="58321"} Approach:

The provided ZIP archive was extracted to obtain a JPEG image. Initial analysis using file identification and metadata inspection revealed that the image dimensions were 1024 × 1461 pixels.

Further hexadecimal analysis revealed the JPEG SOF0 marker containing the image height value 05 B5 at offset 0xD3. It was suspected that the image height had been deliberately reduced to conceal information.

The height value was modified from 05 B5 to 06 00 using the dd command, restoring the image dimensions to 1024 × 1536 pixels.

Upon opening the recovered image, hidden red text containing the flag was successfully revealed at the bottom.

Conclusion:

The challenge was solved using JPEG header analysis and height restoration without modifying the compressed image data.

Flag: HQ11{4e791f19663458dae743b8892cf44361} :::

Note: Agar Kali mein xxd ya exiftool installed nahi hai, toh pehle ye command run kar lena:

bash
sudo apt install xxd libimage-exiftool-perl -y

Diesen Q&A teilen