Dec 11, 2017 · Looking in the directory for recently changed files ls -latr, the ircd.motd seems to have been recently updated and is rather large for what should be a short text file. Inspecting the file reveals a file full of what appears to be Base64 encoded data. Given the size of the file, it is likely that this is a Base64 encoded image. Sep 11, 2016 · Looks like a simple RSA encryption there are some strange things hapening here like the While True look with a try catch and “open(‘flag’, ‘r’).read() * 30”, we will see why this happens later right now we need to get our modulus N and e from the pubkey.pem file: fiasco Solution: After downloading the file use ‘file’ command to know that this file is a zip file, add ‘.zip’… Read More » Abdallah Alrashdan April 27, 2020
The first part of the code will read the file content. All of the lines read will be stored in the variable content. The second part will iterate over every line in the variable contents. If you do not want to read the newline characters '\n', you can change the statement f.readlines () to this: