Built Different - 100 Every picture has an angle. ...
Создано: 5 декабря 2026 г.
Отвечено с использованием GPT-6.2 Thinking от Chat01
Создано: 5 декабря 2026 г.
Отвечено с использованием GPT-6.2 Thinking от Chat01
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
I’ll inspect the ZIP and check the image for hidden data, unusual metadata, and encoding tricks.
pythonimport 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)]
pythonfrom 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))))
pythonimport 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
pythonimport 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)
pythonfrom 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)))
pythond=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)))
Flag found:
HQ11{4e791f19663458dae743b8892cf44361}
The JPEG's height was deliberately modified to conceal the bottom of the image.
0xD305 B5 → 06 00Restoring the height revealed red text at the bottom of the image containing the flag.
Technique: JPEG header manipulation (SOF0 height modification).
report k liye v dikha do hm khud kali se command run kr k ss le lenge
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.
bashunzip DT20268709883_Built_Different-AcFffAA4A5.zip
bashls -lh
Extracted file:
AcFffAA4A5.jpg
Screenshot 1: ZIP extraction and file listing.
bashfile AcFffAA4A5.jpg
bashexiftool AcFffAA4A5.jpg
Image dimensions:
| Property | Value |
|---|---|
| File type | JPEG |
| Width | 1024 pixels |
| Height | 1461 pixels |
| Encoding | Baseline JPEG |
Screenshot 2: Image metadata and dimensions.
bashxxd -g 1 AcFffAA4A5.jpg | head -n 20
JPEG ke SOF0 marker (FF C0) ko identify karo.
Exact location dekhne ke liye:
bashxxd -g 1 -s 0xce -l 19 AcFffAA4A5.jpg
Expected output:
text000000ce: 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
1461 pixels
Restored height
1536 pixels
Screenshot 3: Hexadecimal header showing the modified height.
Original image ki copy bana lo:
bashcp AcFffAA4A5.jpg fixed.jpg
Offset 0xD3 par height modify karo using dd:
bashprintf '\x06\x00' | dd of=fixed.jpg bs=1 seek=$((0xD3)) conv=notrunc
Changes verify karo:
bashxxd -g 1 -s 0xce -l 19 fixed.jpg
bashfile fixed.jpg
Ab image dimensions 1024 × 1536 ho jayengi.
Screenshot 4: Header modification command and restored dimensions.
bashxdg-open fixed.jpg
Image ke bottom mein red color mein hidden flag visible hoga.
Screenshot 5: Recovered image showing the flag.
HQ11{4e791f19663458dae743b8892cf44361}
:::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:
bashsudo apt install xxd libimage-exiftool-perl -y