Rating:

# Spentalkux

> Spentalkux ??

## Description

With such a small description, and no file attached, the first thing to do is to use your favorite search engine to find something interesting. In this case, I have found a Python library: [spentalkux](https://pypi.org/project/spentalkux/).

## Solution

### First version

Let's install it with `pip install spentalkux`. Once it is installed, I guess I could try to import it, but I prefer to look directly at the source to make sure there is nothing malicious. On my computer it is stored in the folder `python3.8/site-packages/spentalkux/__init__.py`.

```python
import base64
p="""
aW1wb3J0IHRpbWUKCmdvX2F3YXlfbXNncyA9IFsiR29vZGJ5ZSBub3cuIiwgIlRoYXQncyB5b3VyIGN1ZSB0byBsZWF2ZSwgYnJvIiwgIkV4aXQgc3RhZ2UgbGVmdCwgcGFsIiwgIk9GRiBZT1UgUE9QLiIsICJZb3Uga25vdyB3aGF0IEkgaGF2ZW4ndCBnb3QgdGltZSBmb3IgdGhpcyIsICJGb3JraW5nIGFuZCBleGVjdXRpbmcgcm0gLXJmLiJdCgp0aW1lLnNsZWVwKDEpCnByaW50KCJIZWxsby4iKQp0aW1lLnNsZWVwKDIpCnByaW50KCJDYW4gSSBoZWxwIHlvdT8iKQp0aW1lLnNsZWVwKDIpCnByaW50KCJPaCwgeW91J3JlIGxvb2tpbmcgZm9yIHNvbWV0aGluZyB0byBkbyB3aXRoICp0aGF0Ki4iKQp0aW1lLnNsZWVwKDIpCnByaW50KCJNeSBjcmVhdG9yIGxlZnQgdGhpcyBiZWhpbmQgYnV0LCBJIHdvbmRlciB3aGF0IHRoZSBrZXkgaXM/IEkgZG9uJ3Qga25vdywgYnV0IGlmIEkgZGlkIEkgd291bGQgc2F5IGl0J3MgYWJvdXQgMTAgY2hhcmFjdGVycy4iKQp0aW1lLnNsZWVwKDQpCnByaW50KCJFbmpveSB0aGlzLiIpCnRpbWUuc2xlZXAoMSkKcHJpbnQoIlp0cHloLCBJcSBpaXInanQgdnJ0ZHR4YSBxenh3IGxodSdnbyBneGZwa3J3IHR6IHBja3YgYmMgeWJ0ZXZ5Li4uICpmZmlpZXlhbm8qLiBOZXcgY2lrbSBzZWthYiBndSB4dXggY3NrZml3Y2tyIGJzIHpmeW8gc2kgbGdtcGQ6Ly96dXBsdGZ2Zy5jencvbHhvL1FHdk0wc2E2IikKdGltZS5zbGVlcCg1KQpmb3IgaSBpbiBnb19hd2F5X21zZ3M6CiAgICB0aW1lLnNsZWVwKDMpCiAgICBwcmludChpKQp0aW1lLnNsZWVwKDAuNSk=
"""
exec(base64.b64decode(p.encode("ascii")))
```

So we actually have a Python code base64 encoded which is executed. Let's see what it does:

```python
import time

go_away_msgs = ["Goodbye now.", "That's your cue to leave, bro", "Exit stage left, pal", "OFF YOU POP.", "You know what I haven't got time for this", "Forking and executing rm -rf."]

time.sleep(1)
print("Hello.")
time.sleep(2)
print("Can I help you?")
time.sleep(2)
print("Oh, you're looking for something to do with *that*.")
time.sleep(2)
print("My creator left this behind but, I wonder what the key is? I don't know, but if I did I would say it's about 10 characters.")
time.sleep(4)
print("Enjoy this.")
time.sleep(1)
print("Ztpyh, Iq iir'jt vrtdtxa qzxw lhu'go gxfpkrw tz pckv bc ybtevy... *ffiieyano*. New cikm sekab gu xux cskfiwckr bs zfyo si lgmpd://zupltfvg.czw/lxo/QGvM0sa6")
time.sleep(5)
for i in go_away_msgs:
time.sleep(3)
print(i)
time.sleep(0.5)
```

Nothing special here, only prints, and a ciphertext. This is a Vigenère code, which I decrypt with [dcode](https://www.dcode.fr/chiffre-vigenere).

```
Hello, If you're reading this you've managed to find my little... *interface*. The next stage of the challenge is over at https://pastebin.com/raw/BCiT0sp6
```

So let's head there, we find a very big file:

```
89504E470D0A1A0A0000000D49484452000004800000028808020000008749165A000000017352474200AECE1CE90000000467414D410000B18F0BFC61050000000970485973000012740000127401DE661F7800002AF449444154785EEDDD3F8EE3489A37E0EF206B2DB67B8D04C628AFD2298C9346629C01F2007D814AF40DD6A90B945DA7C893D4493E63D0C6A081017649492946F06F500CBD49691EE031BA2B2383C19794F4FE44A6F4FFFEFF7FFC1700000001043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C0000208800060000104400030000082280C1B29F2F5FFEF3ED6F074FDF5FFA3FDDAD6B2F3B9BFFB1FFD3DB72A387F8EEDDD33906004702182CFBF9F5E9BD0BFCDBEB0D05B02B2FFB46CB322A605F7EBE7C7A6B3C3EF4FE9D19F7748E01C0910006CB04B0510258B9B76FA7C91BCF5F65B052021800F74700836502D82801ACD8A7D7F7C95BDF3E0D06304E0003E0FE0860B04C001B2580157BF8FEE33479EBFA012CD99D2F6F3BFBD3A9556BBBA773ECB6ECF91402B87502182CBBD12EF0DACBBEA7E6F8FAB5FAF27C9A3FE2C324923B1E77F7D915ABD6764FE7D86DD9F3290470EB04305826808D12C0764B006323010CE07A04305826808D12C0764B006323010CE07A04305826808D12C0764B006323010CE07A04305826808D12C0764B006323010CE07A043058B6B60BFCF9F2F9F5DBD373FAC1776FCDFF7EF9FEF5D3CFC1E0795BA62A59F6DBB76ECCF3D7759FCE373EFFE3C3DBD72FE982DBD5BE147EF3D543B3BFDFDBFDED663ECCF0F4FAF5F3BA8F623B2D2399E7C7D3F3B7C9955CBD562F5FDE7FF7E9FBD8FCDD801F9FBB23FBF8A9ADC6E917DBDF7DFE365D87C7CFC9C8190BFD74C5B3B773E9DA26CFB1F2B28C6BCFB4D7E694E826399E661BF6F1A03B8EDF92A93EFE4131F2706877B6F7EB954E2100E60960B0AC3C8035EDD7520753DAE46D9F6A71D9E980A9313306F31F9ABC64C2CC8FF90FB37E685ACCFEAF0C3CA74DEDA4B63BEFFD62EEE975D0FB86D7AA2F19F0E5ADFD97B9828CD76173F75CF1ECEDAB16C09A736C655906924FA41CD5ECE3E5DF94DD2DF814A4E7161CF3A0983FACCDAF77830530801002182C5BEC9E0F16FBFE447A9563449DA9E6979DFEF4306075D399CF9F7FD5D5B863B4182AF9DD770B5FA2F5E9B568AAB22B2D633F3D0CD858ABFE4F1BC980A629CFBFB879D4B00E9BBAE78A67EF983A01ACE03C59383D9ADD1CFCCAA84BBFABAD5B705BA592137B2ACCD47950F44EDD51DD092980018410C060D962F7DCE83776C75BB61E1F8E7A3720B5A67BA65A53CD2DFB7CA3D4E9A797BCE53FD1DB1DEF073BAEB6BD832EFBE978EF9EF49AA73BA392F51CEE37EB66983E04C39E3559C9C3DBE196B3F38F7A9344D66A74FD53C53C56A3D5AE3FFBE9741D56FF014FC5B377D1AAB55DAD2C8DFC6ADE7137BB9FFEEDF9A2EB60DD827F3C2545FBA807459AE4DB0BBFC9FE76CB18DDD3B5A71000E5043058B6D83D17F6E8BD6EF2DA534D2E3BBF25E9B244D1E8ADA1F563E48F52BABF8A39185D6ADBEDB5B7634DAE24DB5641E09CEC1A4F7D67FFA791B55A3C582723C5CC136651862FE89E2B9EBD05B606B08BCB92EDE6C4BD7FD9B5C7A90BB673CA161CF4A048078C1FAF667F7F4C6FFDF4BB0218406502182C5BEA63B2FE6FFE8DF3A4AD693BB3C13BDF15A79A58767E97D1C589A2D1EF35A7FF16255BEA85174F92CE78FC8A4176DBDE78BB392DB256A36B2B2D66B6A4C984B0A67BAE79CA9558B3B68A6549777376BB4934BAE022D8AE1E14C9265687C95587098055043058B6D03DA7CDDF72579ADD14D4EF6C2A4E35BAEC7A89A291F59AF3AB2D8B0DF316BAC9F492C2FA6C1059ABE50036B7FEA220B1A27BAE7ACA9558D5D9572B4BBA9B0B696721D5CCDBD583624B88DAF2BB00CC13C060D97CF79CFEB4E42DF3A4B3E9CF5671AAC660D969F7DCFCCBA644D1982F4BAEF8FAC3B4F95E736DE97A3EBC56E5C59C3FE847E5DDF3DABA956C7D5EF9DA1AB5CA523E4F7EAEAECE45976EE8EA0F8A996B71A3561D26005611C060D97C53B5B6254D67EBB5BC15A7EAFDF4F525FB78C092C917CD97A567EDAE0DCDF69A5B7BD90FAF5579314B469677CF754FB912E56B6BD42ACBAA8DAE1ADC53BEE0C6DAE20F25338C66C5EC7D84F6B3558ADF4AD8520400E60960B06CB6A95ADFFAA737CB657743559CAA952E3B73E11F9CF4ADEA35D3C1B38DFBE1E30A075F3B9BBB6E00CB44D5AABC9825238BBBE7CAA75C89559D7DA5B2A4BBB9CAEA73A97CC18D74F0151E1407E9F13AC93FFE71820006703D02182C9B6DAAD2F798277AA09EC916B6E254AD6CD95FB3BF68BAECDA454FE55E73F8F1DC9386C5595FBADC87D7AABC9825238BBBE7CAA75C0901EC2C1D7C8507C5BBFCAF19CF9E67BF065A0003B81E010C96CD36553712C05EB2FFADD254D5EC35277AC409C3E2540D601F51ABF262968C14C0F29F5E1AC0B67D08C7FC821BE9E02B3C28520F3FF32F54389B7A7F410003B81E010C9615F776659DCA640B5BF97EB0E1B293A6AA71495049D5EB35D318D0187CEDEC41B2F8E1CAD3D2550860CDBF04D7AABC9825238BBBE7CAA75C89559D7DA5B2ACDFCD4B952FB8910EBEC28362CCD825B5D10CB6EA3001B08A0006CBEAF676D35D57C5A9FA3F7D5F76DED55DD4409FCD96A52FCD33BDC1E93C33D71C667BCDAD1DF687D7AABC9825238BBBE7CAA75C89559D7DADB284C589F20537AEFCA098F190C7B0919A84550CE0DF900006CB8A7BBBA29674A6EBAA3855637CD9F97D4D97F5D0476B7ACD9946BF3403243B3BD26BCE9762D187D7AABC982523936A2C74CF754FB912E56B6BD42A4BF93C1BADD9509AF0AFF2A098377F28571D26005611C060D9425395DE94B5F84723594F3FE8992A4E35B3EC742B1BFAD174FE850B44E952FBFB95F69A734DE47CAFB9623163226B353AC9E280B392912BBAE7AAA75C89559D7DB5B2A4BBB9ED62E6BC74190B1B9AAB7C9D07C5826401C3EC2D80015C8F0006CB96BAC0EC5EB5F93631696B46FBB38A53CD2D3BFBDD4B3BE9ACD76C7AB8C97633ED2687AD5E59AFF99856666C58960DE65AC6E3A711F40A1259ABD1C3BA38E0AC6464F96C754FB9126BD656B12C33979B6A4A97D19AFCFAE39007C5BCD900B6EA3001B08A0006CB167B91BCEB7A7A1DFFB6D387B7ECEF2EC61BA62B4D355876D6FF2D5FFA18932F75729EDE1E0D7BDFB4AD1FBF0B2E0B578DF1FDED27A59126FBE1ED7D31BD8244D66AF1141A1D70563472CD059FDE01DA72CA15B9746D1BCB92EFE6DC27B01FCE9326A55F92D3F2AD1C7CD883A28967735FF9956C626C4FD71CA6765BE7C7C8E403A4D618809B2780C1B2822E30BB8CD0FAF1E5FB4BFBA965079F0EFD5C3660BA9BAC36D5C2B27B0DDCFA0B1A23BD66ABEDF9DE8EAB7DF9DCB55307E3AD64DAEA3563D28B06E3DF8334D1FDF75BD266AACFA7953C1E5AEA6431BD8244D66AF478159C63274523F305B725ED8A30CC1E15CFDE026BD656B52C79907E7B3A9E1EE9806667D3F3ED82DD4C9791F888074557E7664FDB229F7FD4EC66B686D1A873E9616A8CD6ADD618803B2080C1B282DEAEED8AFA5DECB4898B0CEF2A4DB5BCECBCC95BDBEE74F3370D5C2FA28C9A7E4B3BBF7835EEF9DB39064C5F7E99F8B2A3BE41828AABD5C4EF169D63078523A74B3A76B9A3E2D95BA07C6DB5CB92078F055BAF80F5BED17BDC151F1485C77472372F3B4C8DC5337CCB18803B2080C1B2B2DEAED1FB70E73123D71F465598AA64D979C7B3AEE3EC7EF7D844F6DE56CF656FE18F98DFDFC37D715DC69B0E608DC7FE1586DCD3EBD80587B85A15B49EF37D67F1C8A9C331B5F28A67EFA2D2B55DA12CBD7B29C71D2E8EF57EB1C86019BDCB6E996B3F28A6BE7CB9B370402F394C8DD1FAD71A037007043058D6F431EF3DC1D3F7C59EE074974ED64934FFFBDABFDFA9C0B6A9CA969D3579AB2E6E74F3277DE4E10EAB64C13F8EB73F75BF35E37803587AA3E0737B2FDCC369F2EE2ACD6C003B6897D14CF53E4F7FAA81B85A4DCC5F7E8E958F6CC3467BFE1C07B78E45180C4B543C7B1714ADED3A6569B45B6F4ED42C9FB4E7EADC49526234070E1F14876F55EE7E6BC6F60745B3F5DE0C873D2D3CA085A75017D59A99270A586B0CC0CD13C000A08ED100060029010C00EA10C00058248001401D0218008B043000A84300036091000600750860002C12C000A00E010C8045021800D4218001B0480003803A567E1D1900FF8E043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C0000000820860000000410430000080200218DC91C74FDFBF3D3DBFFDED3F4F9E9E7F7C797B1C0CDB939F5F9FDE57BBEBA5FE7CF972AEEAF77D9794720EEB5637F89C03F0E10430B8134992C9FDF8FCF33CE6E5D35BE3F1E1FC5B1FEEEDDB79A9BBEE80D3F2BEBEF47FCA8D7258B72879CE0160480083BBD0BD913FF0DE0C2551E76FCF5FF792C104303E90C37AB982E71C0046096070071EBEFFE8BA9FE7AF9FDEBB9F879F2F9F5F4F59EBD3EBB93D6A7CFB94FCFA4712C0F8400EEBA54A9E7300182780C1ED7BFCDCFD0DC6E47BCF59C32480ADB5C34E3D5992BFBAB9900076A1A2E71C3A6B1FAD1EDD70DF0430B87DC9BD4033F716FEFCFAE5BD67DA51D411C02E762BA5DB3301EC4265CF399CAD7DB47A74C37D13C0E0E6DD741329805D4C8BB69D007619755B4B0003520218DC3C012C800076970489CBA8DB5A02189012C0E0E609600104B0BB24485C46DDD612C080940006374F000B2080DD2541E232EAB6960006A40430B851F9C7CA4F48FF3EFE67F777F34FDFC77AA66E40FAB1668F9FBE7F7BEA3EF1ECEDE9F9DBE7559FCAF57376860D7DC643F2BBB31F14F6D8D5EAF9EBECC73FBE9C3FA7A4DF568E779C8FCD1A2E2E4EFB81DD6D657E7433379AFF7DFD3A3D49FAE973738A8B9914A7E8B331B3124D7FE2CBCBE7D776D7DE676E35FFFBE57BF779E59392522F7CFE5BF9C8293B3CACCFD58EC2E113E17FA43B725CC6F22198B0FA39A767D359F1327C76CA0E5333CF78799BA3F9F54BBED109B395BF64F16B1FAD751EDD171EF72B3DFF03A30430B84D852FD5494BB1F8A675D6CEB6FFF2D0BCF49E7FA5A76913177BA6B6B99FEE7B8E336C79A337F9DDF13D3A393716ADE3AE8D9B59CCA07A4D57777171E60A7B363E49F5009675D5CBBFB558F3A68D5B5AE1422F587E4A6C39798EF67258AB1F85EE234F47358760FD4717AE7FCE39DB7E56F49F9DC61633C87E6D42EB8D9933F179FA972F7EEDA375F3A37BCB71AFFFFC0F4C13C0E046AD7E377AD06BF6652FC0E98591290B6FD517CCF0E3F3F72D3D749AACA6179376ABB35B49BF2AAD9FD3F2EAE55FAA366A723D05BF7B369CA47E00CBEAB3F491E2E9311D46D935FDEEF497477D5C00FBB8C35AF9289C7F3A6BFA213361F573CE419DB3227F761A7F14E49B5E73448E460AB26DF1A1016CEB71AFFDFC0FCC11C0E0E6E54D64FFA7678BC3D20189C39BBB8F0FADF6CE96ECA7D39BEB773F871B570E931CEE69497FF4EE821E7ABE133D1AAC64AABB4DBB9F416F51AF38C97A8EF7053D26EB39DCFC769EA1317340B7C78F9334C74E77C0AD64E4B08CFDFEEF7877D6E9A08FDD0636D1C095EFD7F60AECE8B05E74148635CC8FC26125E79F1E8F42F7D3C5A437A9F039A751EBAC48B6F894FC4AB3839FDF5E9AA79476BFD2DDC98FECD3F7EE46CDF698A645287B881D5CBAF8C6DA7375C3F8F6572E38EEF51E0BC032010C6E5E6133B4386CE405F8C7F076FF3CCF2C774B8DB10662E4BDDE4B7AE8B4ED18DFF7E18626BADBF9FA542C4EBBE6F6EF55267BDF6C5BF55ABA69E9B2E7A69ADB629A0ADA028EEF5DAF8CA387AC7CBFB657604F87357D37A1CA51681693FFF428BBB831F5B6C582745F669E732A9E15A3476A3AA62EEE634111EA2DBEB1F65C5D37BEC6711FADF0658F056091000637AFB0195A1CD67F019EBACB3F8B34A3BD4BF6223DBDA4DE5F885DD443279D47F1DBBA8B6B2EE84E2E2F4E89A4559AEE32B7C78FB374EFA6AF8ACCAC2A3BE2F3D75592658FEF5DF97E6DAFC0AE0E6B5A99CD4761B6204B8F9A4569DDA61FE035CF8AC10379F62814ECE0D22ED45C7C63EDB9BA667C9DE31EFB58807F770218DCBCB266687958F6023CD1461C2CBDDEA7AFD073F334D237658BFA9281D2A6F6F97093D2F1BFC7763F9967EC6DDD6AC52993B45F932DCEDA966E4EC9219BE9DE561CF1C6C2412FDFAFED15D8D761AD7814162E4D2C3C6A16153DE7543D2BB223B5740892C1D32393E58DE4ABAA8B6FAC3D57578CAF74DC831F0BF06F4E00839B57D40C150C2B9CA79134072323D379E6DF396E6CEEA1E7BB8173C3D1FC28693E866D4AD2D75EB53885924942025856C6F165CF6C6ED5116FCC97A87CBFB65760678775B9B59DD9E5F27DC93774C9458C926DD53D2B56CD960C9EDEBBD9005677F18D990337AA7C7CC9B1783777DCCBE759DC596091000637AFF085737158F90BF0FCC8552FCF6BFB92A17431FD56A9EBB1DA6E23D956BFF998F9D151ADE2145A5C4F637BE952E9B2C7DE479F7BEF3C5949D12ECF1DB235FBB5BD027B3BACF395293E0ACBD5D858BA926A249BA87056ACAA7F32787AEF9200369CB0EEE21B6B0B5E3E7ED5CC3383CB2BBCEA5800A30430B879852F878BC36ABD00D76A084A4DDF81D3ADF3F8EFDD65AEDEB6662F8E1DD42A4EEEE1EDE5F8EDAEDDAF0C0405B0AC08C38DCEDCF95670DDA62F996D58F0F2FDDA5E81DD1DD6F4641EDE06567A1456B9A47405D5A87C56ACA97F36D5D4E0D9092B2FBEB1F65C2D1E5FEDB85FE7B1008C13C0E0E615BE1C2E0EABF402BCAE77A99122D22DA67D6DF7EFEFDD6A9731B2FE75F666A4A34AC57937F959FC4361012C9DB0BFF2E447C3F5CC26B751B3DD6AF97E6DAFC0FE0EEBDCC367F628546BC44B1454A3F259517EA40E96B69E06DD91019517DF587BAE168FAF76DC2B3F1680590218DCBCC297C3C561955E80E73AC8A1ED3D7463623DE72EEA3C73B2B6E4F242F2EB936BA8549C83ACF95B34D9FF55295D66B2894CFAD191E6B272B75ABE5FDB2BB0C3C39A6E287F3B60FE285CDA88CF7DDCC2A482BA553E2BCA8FD4513ABEFDFEAEEC7BC016BF14ABF2E21B6BCFD5E2F1D58E7B7985D71E0B604800839B57F872B838ACD20BF00704B0ACF73D773FE79668216B8DA7B29E4AC569A4BD5D63F0A5BD0749590203D844DFB9B447EB8E78EB0E0358B5C39A4D959E9049D1EA1C850D0AEA56F9AC283F5227E96C33C61FF29517DF587BAE168FAF76DCEB3D1680650218DCBCC297C3C561B55E8093D661F9E5797B0F7D907421EF1D553773DA0F2551ED7D6D5DBF3B75FF61A35671D29FCEE4BDA42C91016C74F1698737BA98D52D60BA9561CDCBF76B7B057678581BA3FBB5F8BBDBAB51AEA06E95CF8AF223D52ABB1AF93CF55557B517DF587B74CAC7D73AEEE5155E772C80310218DCBCC297C3C561B55E80D39FCE449AA35ADDC3609EAE85CA5798B456C760D6BD753DB7804AC5296DEC92DD090D6023D71247AF2EE692952C1FF1463A7EFEFC992FF5F60AECF0B0B692CB29A77A161C85F27DD9AE645B1F755634BAA9DA30FCF0F6F54BF681283F8ED727FBBF95AABBF84632A0E85C2D1F5FEBB897CF1379A6C1BD12C0E0E615BE1C2E0EABF6029CDE8D337D35A0957E37D7C614D1EB59BB86B53F6DD2D9B44D70F7BFB34BAD549CB4532FBC06121BC00659A268C7CB8F7823BB3A31B277E916677BDF0A27CF0E0FEB41BA6BEDC8D5476122A4D5F2B167C5FC914AABB734725AD5C537D63E5A578CAF74DC2B3D1680220218DCBCC297C3C561F55E80D3F6717AAA2C7D3536A68864B6A6613A3725C3E6A9EB579A2D76BF35FF3E77A5E29475EA59652687952F699574DAA626DD82E7DAD0B2237E90749613FD6251EFFBE9B5AB64E3160258D9613D4AABF4FA72C151D8F8685A5056B79A67C59AB3BDDB6EC9C5AB09554FE975EB6F5DB6BF5B8E7BF916D7EE0B302480C1CD2B7C395C1C56F10538EB489A5E73D013FC7C49DF333EDADA32261B7D7A7E6F58C73AB0A43FFBD67D1EDAC65D3E9B1F995666BC3BCCDE4D6F4C77EA95DEF91E48FAB91F4FE7C59407D4A6FE4D66E80D387878CB3EA57D6AD7B2DE7764BBFD12353E3680553DAC47D9C1EDCED2354761E4719738DC9877E5BA553C2BCA8F549E87A736BAACE2E25B6B1FAD6BC65739EEE5152E1899BC3F52F21ECAA63170930430B879852F9C8BC36ABE00F7DBCDD387C2B55E3EBFE67F8FF13E726B00CB5A967763CB4BFBB3B38586B85A71F245661F0330FE2D52D30BCB8BDC4E75A8F0E12F5EE69BB005797E3E5A3C3A596A6AB59FFDFD7ED01F3F1DDABE6CC04C197B0B78FEF6F9ED7D9E892FDAFAE00056F3B09E0CEAD95ADCCDDEB9FD742C5D3AA057C3F9BD9E525CB76A6745F9916A8D44F4A3A7E7E609E7E4CBEBB7CFC9C7D30FD53CA5573F5AD78DAF70DCAB3D16F201D71E03374A00839B57F8C2B9EA5573FEA5AE6864DE928E3A7415E73E6373001BE95997DF4D3F59F31EF3C6E28CC59BBEE4D2DC5CA73E3DD5B6620E8F5DC9DBCFFD7B4AE72C5D972898AA59D2E693679F87F568E42C2DBA08D0BB3973DED5EB56EBAC58B1C5A315DB9DBE4A56F3945EFD685D397EEB71AFF858E89DBA571D03374A00839B57F8C2B9EA5573FEA5AE748BF9179EE6DE9B9E9A016C70696BAA61CDDF5D6E2CBEB4572DCEC3C4659CA34365BA15CE77EA535DD7C662F6FBCEF93BDF12F3BB76507875AEE97D271BCAA7D7E37AF614C0AA1ED683C1595A7E14F2FBE2C61D2E92F47EB15479DD0E2A9C152BB7B822381D4DD7B6DE29BDFAD1BA76FCA6E35EF1B1900EB8F618B8510218DCBCEE03279A17E6E997A8C56185F334CA47B63D417BCF4CF23A7AFC0CE8F380EE3DE6C226665616F9A6DFD86E9AAAB4B3F9F179F97244EDE21CEF083AFFAD5AE3B9BDC1E9E15499B42CC96F8D3956B83FCF60D83A79EBB332DE9C6E94CA9AA7E67F5FFBB7452D1BDEB05AF7E4D9F1616DE4FD74D3E5F707CC6B8F4253BD2CC535FFFB2D59CFA5D63C03BCDB7656ACD962F6E8CE6E076D0FD0F106C2C1BDD0F32779B5537AEDA375EDF8C685C7BDEA63A18B8E4DDE9BD868AD31709304300006D2CB2F353FE103AEAC8B07EB6E2D2EBEC008B0950006405FFAF727EEFCE18624A76EC135C324AD09604018010C809EF44F68D6DEF9061F28BDFF500003764A00032093FD0198FB0FB9292B2EDE767F92D7B8F0735C002E208001904AAF21E84AB935E9DF801D3EBCE1EDE5E167761A9FBE142BFB980A6F3400810430001269FF5AF4C553B02B83AFA358E43C076209600074D23BB8FC550CB7E9F0E9EDE77C3567E6CB2A00AE450003E0EC5377F5A0E0EBD160C70E5FF6D57E2D5BF6FD5D8D8BBEC20BA01A010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C000020880006000010440003000008228001000004D914C0FEF1D75FFFF5FB7FFFEFFF1CFCFEEB9F7FFDA537E0DD2FFF3C0CFBF3AFBD7F3FA935CFC1DEC674227733F2D0D41AD3B3B772D55A4FD5FDEA4496EBE0164BDA51AE82793A91E58ADCCDAAFBD5B9C5721D44AEA7B3B772EDADA4C05DBA3C80FDF1DBAF8767A85FFFFCAD75F8EFFFFED7DFFB4F55ED73D9F1896CE2F9A5D63C8DBD8D4945EE66E4A1A935A6676FE5AAB59E8AFB958A2C57E3164B9A52AEDD962B72372BEE57EA16CBD5885C4F6A6FE5DA5B49817B756900FBEBE189E9F75FFF71FE97BF1C9F477EFDE75FBA61A7E7B2DF7FFDE7E13F469E5F6ACDB3BF3199C8DD8C3C34B5C6F4ECAD5CB5D6536FBF3291E5BACD9266946BB7E58ADCCD7AFB95B9C572C5AE27B3B772EDADA4C0FDBA3080FDF15BF394D47FBE38FE63F25ED12F7F36FFFBDB2FCD73D93FFE3EFEFC526B9EFD8DC944EE66AD6D95CC536B4C4FD9AFC495ABD67A6ACDD3536FDA7B2D69A6D6A695AB7AB96A6DAB649E5ADBEAA9376D5CB962D79389DC85926D45AEA76C0C70B72E0B60ED13C7FFFECFAF7FF4FEFDF8EED16FDD53ED3FFE72FAEF89E7975AF3B4F6362611B99B9187A6D6989EBD95ABD67A6AEE5722B25CAD5B2C6942B9765BAEC8DDACB95F895B2C572B723D89BD956B6F2505EED98600965EA63F3A5EAC1FFEFBE4F34BAD79327B1B13BB9B9187A6D6989EBD95ABD67AAEB25FB1E5CADC6249956BD53CB1E58ADCCDABECD76D962B13B99EFD956B6F2505EED945016CEAF968EDF354AD79727B1B13BA9BB5B655324FAD313DEB7FE5BAE5AAB59E5AF3F45C67DA7B2D69B54DE794EBECBAA5C87D7C497BAE33ED75CB958B5C4FE82E946C2B723DB99231C09D11C026D51A13BA9BB5B655324FAD313DEB7FE5BAE5AAB59E5AF3F45C67DA7B2D69B54DE794EBECBAA5C87D7C497BAE33ED75CB958B5C4FE82E946C2B723DB99231C09D11C026D51A13BA9BB5B655324FAD313DEB7FE5BAE5AAB59E5AF3F45C67DA7B2D69B54DE794EBECBAA5C87D7C497BAE33ED75CB958B5C4FE82E946C2B723DB99231C09DB942001BFB73DB4B9E13CBE7C9ED6D4CE86ED6DA56C93CB5C6F4ACFF95EB96ABD67A6ACDD3739D69EFB5A4D5369D53AEB3EB9622F7F125EDB9CEB4D72D572E723DA1BB50B2ADC8F5E44AC6007766C38770ACF9BCA389E7975AF364F636267637230F4DAD313D7B2B57ADF55C65BF62CB95B9C5922AD78ECB15B99B57D9AFDB2C5726723DFB2BD7DE4A0ADCB30B03D83F7F6F9EA7FACF17A3DFA17134F59C58699ECCDEC6C4EE66E4A1A935A6676FE5AAB59EABEC576CB932B75852E55A354F6CB92277F32AFB759BE5CA44AE677FE5DA5B49817B7659003B3D5F6417EB8F97E987EF1E1D4C3DBFD49A27B5B7318DE3B098DDACB5AD92796A8DE9A9B50BA9A931D7D8852DDB4A4DCDD3738D69B78C29594FAD35AF9DA7516BD3A92D634AD6536BCD6BE769D4DA74AAD6F2B6CC536B5B3DD798766A4CE4B652B5D6D388DC85926D45AE27553206B8331706B0F37B45CD13D39FBFB54EFF9D3D83FCF2C7DF4F3FFDF330F85FBF9FFEF78FBF74636ACDB3B3313DA1BB1979682A8DE9D95DB96AADA7D23C3DA1E5BAC192F628D7FC3C3DA1E50ADCCD5ADBEAB9C97205AEA76777E5DA594981BB7571006BFCF2C76FC737874ECF1D83678DE31DD523FA4F6715E6D9DB98A1B0DD6C87451D9A46AD313DBB2A57A3CA7ADA6195E6E9092BD72D967448B94E3FDA59B9DA6181BB596B5B3D3757AEC8F50CEDAA5C8DBD9514B84F5B02180000002B086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C00002088000600001044000300000822800100000411C000000082086000000041043000008020021800004010010C000020880006000010E23FFEEBFF005E84D149130F8E4A0000000049454E44AE426082
```

Using [Cyberchef](https://gchq.github.io/CyberChef/), I use the Magic tool and it recognizes an image hex encoded. (Alternatively, use `From hex -> Render image`)

![image](../images/spentalkux.png)

We see some binary code in the image, so let's decrypt it with Cyberchef. We get `_herring`. So all of this is a red herring...

The image tells us `look back into the past`. If I return on spentalkux webpage, I see there is an older version of the package. So probably I need to begin again, but with the older version.

## Older version

Once again, I install the older version with `pip install spentalkux==0.9`, and I look at the source. I once again have a base64 encoded source, it translates as:

```python
import time

go_away_msgs = ["This is the part where you *leave*, bro.", "Look, if you don't get outta here soon ima run rm -rf on ya", "I don't want you here. GO AWAY.", "Leave me alone now.", "GOODBYE!", "I used to want you dead but...", "now I only want you gone."]

time.sleep(1)
print("Urgh. Not you again.")
time.sleep(2)
print("Fine. I'll tell you more.")
time.sleep(2)
print("...")
time.sleep(2)
print("But, being the chaotic evil I am, I'm not giving it to you in plaintext.")
time.sleep(4)
print("Enjoy this.")
time.sleep(1)
print("JA2HGSKBJI4DSZ2WGRAS6KZRLJKVEYKFJFAWSOCTNNTFCKZRF5HTGZRXJV2EKQTGJVTXUOLSIMXWI2KYNVEUCNLIKN5HK3RTJBHGIQTCM5RHIVSQGJ3C6MRLJRXXOTJYGM3XORSIJN4FUYTNIU4XAULGONGE6YLJJRAUYODLOZEWWNCNIJWWCMJXOVTEQULCJFFEGWDPK5HFUWSLI5IFOQRVKFWGU5SYJF2VQT3NNUYFGZ2MNF4EU5ZYJBJEGOCUMJWXUN3YGVSUS43QPFYGCWSIKNLWE2RYMNAWQZDKNRUTEV2VNNJDC43WGJSFU3LXLBUFU3CENZEWGQ3MGBDXS4SGLA3GMS3LIJCUEVCCONYSWOLVLEZEKY3VM4ZFEZRQPB2GCSTMJZSFSSTVPBVFAOLLMNSDCTCPK4XWMUKYORRDC43EGNTFGVCHLBDFI6BTKVVGMR2GPA3HKSSHNJSUSQKBIE")
time.sleep(5)
for i in go_away_msgs:
time.sleep(2)
print(i)
time.sleep(0.5)
```

Once again, I get a ciphertext, so I fire up Cyberchef. This time however Magic gives nothing... After some search trying different options, I find that `From base32` seems to give correct results, which are then decoded using magic. The complete translation stack is the following:

```
From base32 -> From base64 -> Gunzip -> From binary -> From binary -> From hex -> From base85
```

Flag: `ractf{My5t3r10u5_1nt3rf4c3?}`

Original writeup (https://github.com/apoirrier/CTFs-writeups/blob/master/AwesomeCTF2020/Misc/Spentalkux.md).