Fikamyndighetens nya centrala styrsystem för alla kaffemaskiner runtom på myndigheten har hackats, tydligen är systemet övertygat om att det inte längre ska jobba med kaffe. Kan du hitta ett sätt att beställa kaffe?
解题:
先了解了下418协议;然而没啥用,根据题目内容 咖啡机被入侵;需要想办法获得咖啡
分析源代码 发现特殊内容
Use the header “Secret-Key”
Use the header “Secret-Key” 很清晰告诉我们 要加上 Secret-Key 请求头 key 是 kosmiskstrålning
from Crypto.Util.number import long_to_bytes from gmpy2 import gmpy2
p = 130958128470176100902720469380446369109326974758924912532214019651956038963911683896030120620729393040494273755056054632909162417822816850256309935201375953533317627652387735319668437800407409910425640352029104322189050555094739951873453252279431745963764163773149308333026431316853706209684022163410911535707 q = 167489004754113381575646573385775423908762434825121835425295084286942872299379597057651150917644998604559390293020683809828447884950218028779268428440790011375853275035889047672046213421553134079272059156094443637191200821429174816573514585364309272949198358328162584475701977560746775204303956007366908892313
c = 6947870956216127831444259211915549158146120399920520751589942974104525565162045776038139509446867207779669655848853249877479619351837419910820290895960585567896784211882794450626052110879163757040154102958066538959700957945718578590478429742793656350175630760182520751792094630516203448154195409867620697963406929197883938152110088860612004414998197368636770665241451104161031037212120846522201959983760859671910278800904287246258965661063217873238090319841723560480977441539536958293600254386411319799084408024008495491300482908444788188883062935903091287154439970655426659085455798938026289704501553765958431909383 n = 21934046601931115950262607334962177415966529285655394986998697521115725837524186566350673323766779686122267894540325135687290292763882376199053091126405462105963870402463428913618996886261947895934190895713377659597210844175110790234387576573202363791433960415429285583890508209515125022308897872289452348734447613129809600142735728393370593286015497958525713714325922619303600103480896784074257701362567263520249301934281635459537584648056848519759027267706801125854257131656431911378796241070143227182598117602703775449844464865306381705180708921329170826204009041913764504722984914977324665563377071372889117320291 e = 65537
# print(p * q) # pq=n
d = gmpy2.invert(e, (p - 1) * (q - 1)) m = pow(c, d, n) print(long_to_bytes(m).decode())
privatestaticvoidRequestRecipe() { Console.Write("\nAnge namnet på receptet du vill önska: "); if (Program.SnyggaTill(Console.ReadLine()).Equals(Program.temptemp123)) { Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine("Det är endast fikaklassade ... nting annat: " + Program.Decrypt(Program.nytemp)); Console.ResetColor(); Console.WriteLine(""); return; } Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Tack för ditt önskemål!\n"); Console.ResetColor(); Console.WriteLine(""); }
defkrypto(input_string, shift): from string import ascii_lowercase, ascii_uppercase result = []
swedish_lower = 'åäö'
for c in input_string: if c in ascii_lowercase: result.append(chr((ord(c) - ord('a') + shift) % 26 + 97)) elif c in ascii_uppercase: result.append(chr((ord(c) - ord('A') + shift) % 26 + 65)) elif c in swedish_lower: index = swedish_lower.index(c) result.append(swedish_lower[(index + shift) % len(swedish_lower)]) else: result.append(c)
''' 完整语音 This conversation has been recorded with DoughDial, the trial version of the ultimate baking-themed recording app.Just like a perfectly baked cake, we've captured every layer of your chat.Upgrade now to enjoy your recordings without interruptions. DoughDial. Where every conversation is a treat. Hi, this is Tør. Hi Tør, this is Nicoletta Cluetta. Oh, hi Nicoletta. Nice to hear from you. How are you? I'm fine, thanks for asking. How are you? I'm fine. Speaking of wiener bread, you know the code to the secret folder with the inscription on it, right? Definitely. It's mylife123. No, no, that's wrong. The code is wienerbred1800, but with an o instead of an Ø. Okay, wienerbred1800. But I think my code was better. That was bad. Well, I have to go now. Bye. Okay, me too. Bye. This conversation has been recorded with DoughDial,the trial version of the ultimate baking-themed recording app. Just like a perfectly baked cake, we've captured every layer of your chat.Upgrade now to enjoy your recordings without interruptions. DoughDial. Where every conversation is a treat. '''
''' 对话语音 Hej, det er Tørre. Hej Tørre, det er Nicoletta Cluetta. Nå, hej Nicoletta. Dejligt at høre fra dig. Hvordan har du det? Jeg har det fint, tak fordi du spørger. Hvordan har du det? Jeg har det vinergodt. Apropos vinerbrød. Du kender koden til den hemmelige mappe med opskriften på chefskredet, ikke? Helt sikkert. Det er it's my life 123. Nej, nej. Det er helt forkert. Koden er vinerbrød 1800, men med et o i stedet for ø. Okay, vinerbrød 1800. Men jeg synes min kode var bedre. Den var dårlig. Nå, men jeg skal smutte nu. Hej. Okay, mig også. Hej. '''
''' 中文翻译 嗨,我是托雷。 嗨,托雷,我是尼科莱塔·克卢埃塔。 哦,嗨,尼科莱塔。很高兴听到你的声音。你怎么样? 我很好,谢谢你的关心。你呢? 我感觉非常好。 说到丹麦糕点,你知道那个包含秘密食谜的文件夹的密码吗? 当然。密码是 it's my life 123。 不,不是的。 那完全错了。密码是 vinerbrød 1800,但是用 o 替换 ø。 好的,vinerbrød 1800。但我觉得我的密码更好。它很糟糕。 哦,我现在得走了。再见。 好的,我也是。再见。 '''