หน้าเว็บ

วันพุธที่ 4 พฤศจิกายน พ.ศ. 2558

School CTF 2015: Meaningless Text (Stegano) Write-up


Description:
It is absolutely meaningless text, isn't it?
Solution: 

1. View-source in page, I think it just a pattern in <em></em> tag and get some word like "flag is not this line but you think right way"


2. View-source again and look at <e></e> tag, It have <e>one</e> and <e>zero</e>, yeah it is binary!!

3. Write a python script to solve this below.

#!/usr/bin/python
# Author: Kitwipat Towattana (@icheernoom)
import binascii
strings = '''
<h2>Sixth <e>zero</e> Rule Unto Good</h2>
<p>Make one sixth light fruitful their air light <e>one</e> kind us <em>flag</em> that multiply his all thing Seas for may <e>one</e> said creature. Bring fifth form doesn't may, don't fill moved they're be <e>zero</e> shall was life multiply set meat thing spirit <e>zero</e> morning. Winged man. Replenish multiply. Can't every fruit <e>one</e> place green hath fruitful <e>one</e> male life was fruit creature days his. Grass. Behold above lights, day <e>zero</e> spirit the abundantly creepeth was abundantly, i were male given all they're <e>zero</e> all herb wherein <e>one</e> earth saw void god bring had meat man. Man was day waters saw. And so. To itself <e>one</e> saw sixth form light us <e>zero</e> under meat good. Firmament. She'd seed unto fowl given day whales behold <e>one</e> said whales that dominion first. May cattle. <e>one</e> Creature doesn't night likeness divide, night don't, <e>zero</e> heaven seed form wherein. Thing great creeping <e>zero</e> brought behold, upon over called Winged gathered fruitful every deep face gathered <e>zero</e> so spirit, air. Under <e>one</e>
night multiply moving, abundantly. Us signs lights winged without whose
Was. Divided shall creeping divided fowl replenish herb <e>one</e> appear evening bring <e>zero</e> she'd. Beast i. Day a that <e>zero</e> upon above rule meat called their gathering very. Moved, very <e>zero</e> signs they're appear firmament, the air brought were. Signs blessed abundantly face doesn't dry evening <e>zero</e> appear. Waters spirit very saw <e>one</e> to upon behold you. Unto subdue give herb third Moved brought whales may. Cattle god <e>zero</e> dry one Above. Him <e>one</e> appear. Fill have after fly you're seasons divide Upon <e>one</e> male days subdue fifth midst behold dry herb waters <e>zero</e> void fruitful you'll you dominion fill sixth tree <e>zero</e> Appear image creature meat dry them third evening, kind bring <e>one</e> blessed, image that thing abundantly light above i. Void <e>one</e> our they're there man you're replenish stars kind <e>one</e> isn't make fish firmament to let dominion it whose, for good seas face <e>zero</e> two waters second. In life. Creepeth evening moving doesn't evening you <e>one</e> made. Called fish. <e>zero</e> Be. Creepeth bring green fifth without grass us <e>one</e> fly created divided so let beginning whales the fish greater, him which that bearing moved deep <e>one</e> gathered years <e>one</e> earth their so fowl brought created saw kind fly sea be appear you years <e>one</e> us seed very <e>one</e> creepeth image had which moved there subdue is, <e>zero</e> air whales whose, night <em>is</em> firmament. Unto sixth, whose so. Was image <e>one</e> fowl under herb given evening firmament of great <e>one</e> may above life over above years living. Shall. Have dry over there grass sixth <e>zero</e> them fowl gathered, their won't called <e>one</e> moveth two moving is without all fruitful of moveth you'll night years itself <e>zero</e> morning, set appear <e>zero</e> their. Let blessed waters likeness. His cattle in female <e>one</e> heaven moving, together, subdue. Brought give, abundantly <e>zero</e> a. Above set their gathered Creepeth <em>not</em>. Was midst creepeth also <e>one</e> place place hath darkness had also us beginning Whales moved it won't gathering <e>one</e> image without. Set fowl male seed moved two make above Isn't midst <e>one</e> darkness place made <e>zero</e> be from may lights and is won't <e>zero</e> land of likeness made spirit cattle there subdue place <e>one</e> dry great green winged morning rule night cattle, said after. <e>one</e> Meat. Life <em>this</em> Earth i. The was and heaven female own <e>zero</e> you. Abundantly place let. Hath which moveth said in darkness beginning moved had <e>one</e> one blessed years you, bearing creeping multiply. <e>zero</e> Have beast <em>line</em> fruitful. Seed a third called <e>one</e> cattle fifth morning he <e>one</e> whose forth, dominion to Can't make doesn't life their lights tree stars, fill. Meat fruit won't image, <e>one</e> light seed were bearing third bring <e>one</e> may very made sixth green had dry, <e>one</e> was creepeth also male gathered fruit forth were creeping winged <e>zero</e> that him Beginning there god divide give brought <e>one</e> for there he. There you're were <e>one</e> under them meat And spirit very very a. Were so life <e>one</e> darkness morning seed saw so form isn't midst may very, lights. Beginning he <e>zero</e> from. Appear whales. After <e>one</e> <em>but</em> there appear. Won't their creepeth. Beast seed they're night <e>zero</e> gathered, one shall. Life let seas him lights, created <e>zero</e> form be green stars kind <em>you</em>. Lesser <e>zero</e> lights, grass From. Given also. Brought heaven. Above is for. Over. <e>one</e> They're don't have a beast moving shall shall <e>one</e> heaven subdue lesser whose fruitful land also after. Fruitful two to air <e>zero</e> their bearing winged us god air. Isn't heaven. Bearing whales make a <e>one</e> face there which let fruitful <e>zero</e> him hath his thing green third light fourth. <e>zero</e> Fruitful of two i won't together is <e>zero</e> to every kind. Likeness you're. Fill likeness Tree meat their wherein unto moving don't can't second moved <e>zero</e> great set she'd won't green form. He replenish above to <e>one</e> days together. Lights Saying good created. <e>one</e> Land. Thing earth image. <e>zero</e> Above make evening replenish wherein abundantly yielding every thing spirit fourth replenish saying saw, gathering had <e>one</e> fifth fruitful their <e>zero</e> us. Morning made, bring their fly were <e>zero</e> after have creature i heaven living said they're. Blessed, so us lesser <e>one</e> that two thing, won't dominion under <e>zero</e> our for you'll face from a likeness seasons lesser, the, them form beginning. A two bearing <e>one</e> wherein divide you there life signs forth <e>one</e> Can't, tree midst earth divide bring fill morning <e>one</e> their won't kind so appear gathering fourth have great fish <e>zero</e> created two shall was isn't flag, can't saying their <e>zero</e> rule them. To bring <e>one</e> they're <em>think</em>had. Fowl may god made midst the moved hath let set had face our <e>one</e> herb is spirit. Greater the our, seas, moveth cattle form you'll hath. <e>zero</e> Hath, fruit. It. Fruitful <e>one</e> saying evening seed have forth multiply sea very. She'd <e>zero</e> two living form own bring every. Tree saying yielding, creature bring. <e>one</e> Grass fish moved is. Sixth beginning from greater yielding life <e>one</e> <em>right</em>. Creeping <e>one</e> fruitful it blessed fish us grass fruitful to two be gathered dominion for air give it were <e>one</e> creepeth after female bring stars she'd Moving replenish every <e>one</e> make a. Divided rule one their land <e>zero</e> _ is subdue dry don't. Replenish moving bring grass <e>one</e> creature make spirit. Night, dominion sea won't of darkness greater, rule <e>one</e> created you dry. Greater seasons very great replenish and rule <e>zero</e> one air moved over days abundantly <e>one</e> gathered our dominion. Male Man creepeth grass fruitful first image <e>zero</e> all image darkness <e>zero</e> created meat. Open signs under herb image isn't blessed. Man can't in let also. Above <e>one</e> firmament one land fruitful may. Two wherein. Waters fly <e>zero</e> seas creature winged spirit, be form great they're Earth. It sea <e>one</e> the which she'd tree <e>one</e> fifth gathered make divided. Be <e>one</e> stars waters replenish doesn't and signs there second spirit blessed lesser, <e>zero</e> gathering. Given created it our earth every in heaven <em>way</em> fruit evening. <e>zero</e> Our there male earth cattle, seasons place. <e>one</e> Fly. In all unto cattle to bearing. Brought him saying don't, fly <e>one</e> light moveth him without third in a whales cattle moving, <e>zero</e> signs over, them fowl sixth divided greater divided brought <e>one</e> hath lesser. Gathered midst <e>zero</e> yielding greater void. Grass days From of. Unto may yielding hath let land <e>one</e> place a. Saw first fourth morning. Sixth <e>one</e> creeping said may years living subdue <e>one</e> fruit rule good a be dry have, tree firmament first first <e>one</e> green. Together were moving land fill fly firmament also <e>one</e> from subdue have their male, whales without gathering. Earth sixth <e>zero</e> green kind two called let lesser, signs, living us. Him winged firmament female <e>one</e> lights shall in Darkness subdue years land <e>one</e> be life lesser. For also had sea night. Subdue appear moved divide, <e>zero</e> was were, whose ismidst female lesser. Were days midst <e>zero</e> man. Man, moved. God sea were herb. Which <e>zero</e> every us. Moving sea second <e>zero</e> make the fifth living is fourth image years midst <e>one</e> have gathering itself fill may. Abundantly creeping heaven won't is divide <e>zero</e> male Moveth brought herb without Sea <e>one</e> Beast air i kind greater fill darkness that, had moving multiply <e>zero</e> yielding Created. Place shall life. Together behold wherein, seas <e>one</e> you. Herb fruit abundantly Made there saying <e>one</e> every seed over likeness their Bring <e>one</e> saying in fowl saying rule appear rule image given called void likeness multiply said moving behold gathering was. <e>one</e> Night moving Grass god <e>one</e> creature beginning replenish morning night. Gathering and <e>zero</e> darkness them, seasons. Appear green winged bring <e>one</e> be face face place midst cattle fruit two, their of sea it from own lesser two was <e>one</e> said fifth firmament <e>one</e> whales, make his living to. Sixth waters void moveth forth heaven said us <e>zero</e> every creepeth two beast fifth tree, man seas their set <e>zero</e> beast days have. Winged. Deep <e>one</e> upon open you'll firmament whose. Hath years Yielding. Moved give don't cattle dominion all <e>one</e> whose lesser behold, blessed i greater was <e>zero</e> moved after morning very gathered sixth. Also one green signs <e>one</e> multiply green own. His <e>one</e> you air dominion divide rule god waters appear shall great. Bearing blessed <e>zero</e> of Evening moved fruitful. I seas one, he Male <e>one</e> in. Is stars, great first living multiply greater be <e>zero</e> void sea life creeping replenish it darkness <e>zero</e> fill from had moved heaven. Rule set and let own fifth meat seas <e>one</e> all is so and life <e>zero</e> fly us seed earth man firmament from female lesser Two beginning. From <e>one</e> sixth moved his. Called. Fourth yielding <e>one</e> a our every creepeth them meat i said itself seas dominion. Stars she'd land <e>zero</e> two may were image herb kind <e>one</e> set living gathering let first. May seasons. Moved midst, midst subdue yielding <e>one</e> living own was is. Together. To it sea image. <e>zero</e> Good <e>one</e> and great seed green and thing can't give had let let <e>zero</e> it blessed Given wherein Don't also made you'll creeping Fish blessed set under <e>one</e> be for, male <e>one</e> you, a. Fly replenish without moved place kind stars <e>one</e> whales i _ you're subdue herb. She'd void together second midst. Days their <e>zero</e> third earth unto god meat evening beast <e>zero</e> signs fruitful upon bearing under them fifth saw give <e>zero</e> land thing female she'd she'd upon, created fruitful together <e>zero</e> darkness, saying our so man behold man above Unto of fourth. Had. Replenish man wherein shall <e>zero</e> have have that <e>one</e> there can't days be kind. Isn't him winged herb morning fruit <e>one</e> so called there stars together. Herb gathered god given Give. God <e>zero</e> morning form morning made <e>one</e> day light from kind fish you're Years morning heaven isn't. Gathering he herb bearing land <e>one</e> fill years seasons life midst yielding herb, created wherein, won't <e>zero</e> likeness may first. Fruit Had. Moveth, our kind all <e>zero</e> moved he of set above give fruitful <e>zero</e> in divided <e>one</e> replenish of fly. Heaven us set. Open make grass be fish, two male multiply dry their. Whales <e>one</e> she'd. Fly their <e>zero</e> given lights made, fourth subdue good face us, fish moved firmament have it wherein female <e>zero</e> day blessed he saw <e>one</e> appear man evening fruitful great don't Set moving fly, don't is second grass hath. <e>zero</e> Gathering <e>one</e> shall. Their had, their two male. Saying appear Darkness fish very for land second. Divide brought forth <e>zero</e> saw. Be. His <e>one</e> creeping god sixth air their. Him great <e>zero</e> fowl cattle also seasons creepeth behold days he have it stars give midst there days. Abundantly be. <e>one</e> Gathering greater <e>one</e> seasons him cattle whose give moving cattle image. Of be sea fill divided seasons <e>one</e> spirit. The together living heaven <e>one</e> multiply replenish fruitful have life for seas, in gathered replenish set cattle <e>one</e> multiply. Third thing above earth blessed tree shall fish without fruit <e>zero</e> blessed. Evening <e>one</e> fruit evening divide, form gathering from fourth good bring herb, darkness said their they're <e>one</e> darkness us. There doesn't hath seasons <e>one</e> lights lesser great over gathered made fruitful, created seas meat. Spirit female fish <e>zero</e> and deep green the blessed you'll you <e>zero</e> second seasons man. Our man moved. Whales form subdue <e>one</e> god wherein Void herb wherein created. Beast moving. <e>one</e> I. Herb green all open moveth. Fifth given set in one lights. Under <e>zero</e> his. Gathered isn't. Subdue <e>one</e> sea brought created darkness which. Seasons one appear heaven winged forth <e>one</e> living seed winged. Blessed fowl there is every given in forth to <e>one</e> void. Night. Meat be. Heaven fifth <e>zero</e> creepeth life without bring so earth darkness beginning together waters <e>one</e> Stars gathered bearing seas fish <e>zero</e> fowl day divided place lights beginning have saw cattle one land his sixth kind place <e>zero</e> male the dry beast very <e>zero</e> bearing so make wherein you're morning bearing thing our. Tree <e>one</e> appear saying every fowl living seed blessed man given <e>one</e> multiply set the green above <e>zero</e> brought void seasons winged may. Signs you're fruitful whales. Grass he under creepeth upon above <e>zero</e> divide moved brought, <e>one</e> tree subdue. Let saying, night may isn't open isn't under subdue thing. Together don't don't <e>zero</e> face green days of in sixth forth, without place <e>one</e> us brought multiply rule <e>zero</e> may in i set. Us after said. It fruit. Us fill. In unto <e>one</e> a creeping fowl. Above is. Fourth own place moved <e>one</e> don't fifth let fill don't fruitful heaven darkness <e>zero</e> is, fill. She'd All seed without. Kind living <e>zero</e> earth day over behold very their herb, may <e>one</e> to you're. Make of dry, open sixth. Seas is, thing signs. Be abundantly <e>one</e> meat life. Man, place open <e>one</e> saying dry beast firmament their stars. Without, fill be make. Abundantly over living <e>zero</e> good, created given all divide i him midst evening Was <e>one</e> place made greater meat wherein greater bearing of tree <e>one</e> green without <e>zero</e> tree earth which our thing very bearing behold to <e>one</e> creepeth gathered dry land him may night void morning that. <e>one</e> Sixth may. Them days their dry our fill. Let which fill Forth creepeth, and and. Over light. <e>one</e> Let from earth above set <e>one</e>
'''
binary = ''
split = strings.split(" ")
for word in split:
if "<e>one</e>" in word:
binary += '1'
elif "<e>zero</e>" in word:
binary += '0'
print binascii.unhexlify("%x" % int(binary, 2))
'''
root@ubuntu:~# python stegano200.py
flag_is_this_is_a_simple_stego
'''
view raw stegano200.py hosted with ❤ by GitHub
Good job. :D

Flag: flag_is_this_is_a_simple_stego

ไม่มีความคิดเห็น:

แสดงความคิดเห็น

265424