em Posted July 21, 2011 Report Posted July 21, 2011 Probabil din 25 de incercari fiecare litera din parola.La modul cum tu ai construit challenge-u chiar nu e nevoie.Le incerc pe toate a (sa vad pe ce pozitii sunt), pe toate b (sa vad unde sunt) etc. Quote
crs12decoder Posted July 21, 2011 Author Report Posted July 21, 2011 La modul cum tu ai construit challenge-u chiar nu e nevoie.Le incerc pe toate a (sa vad pe ce pozitii sunt), pe toate b (sa vad unde sunt) etc.E buna si solutia asta. Fii atent de unde pana unde incerci. Nu stii cu exactitate cate caractere are. E f. buna ideea. Uitasem ca am pus sa se afiseze pozitiile corecte indiferent de restul textului.[edit]Cred ca se vor supara domnii de la 000webhost.com pe mine ...Daca incearca multi sa gaseasca parola in acelasi timp cred ca va fi ca atunci cand am dat competentele digitale si au pus desteptii de la minister 200.000 de elevi sa intre pe DEXonline sa caute sensul unui cuvant. Au crapat serveru'. DDOS in toata regula Quote
trxtxx Posted July 21, 2011 Report Posted July 21, 2011 (edited) e foarte tare chalange-ul numai ca daca nu citeam ca l-a facut mai greu cred ca imi spargeam tastura in cap ca nu il gasesc si eu automat nu stiu sa il fac, cand se termina poate vrea cineva sa posteze cum l-a facut automat. Bafta baietiedit: primele 25 ynaerrnhgnidzrg-oyaozmofnsunt peste 300, cand il rezolva careva sa posteze si programul automat cum l-a facut ca manual cred ca ajung sa o iau razna de la atata numarat Edited July 21, 2011 by trxtxx Quote
em Posted July 21, 2011 Report Posted July 21, 2011 Programul/* * To change this template, choose Tools | Templates * and open the template in the editor. */package rstchallenge;import java.io.IOException;import java.net.*;import java.io.*;/** * * @author valentin */public class RstChallenge { /** * @param args the command line arguments */ public static int AflaLungimeaParolei(URL url) throws IOException { String string=""; for(int i=0;i<512;i++) string+='a'; string="pw="+string; //System.out.println(string); URLConnection urlConn=url.openConnection(); urlConn.setRequestProperty("Cookie", string); urlConn.connect(); DataInputStream theHTML = new DataInputStream(urlConn.getInputStream()); String st=theHTML.readLine(); String[] str=st.split("</span>"); for(int i=0;i<512;i++) if(str[i].charAt(0)=='a') return i; //System.out.println(theHTML.readLine()); return 0; } public static void incearcaPass(URL url,char x,char[] pass,int lungimeaParolei) throws IOException { String string=""; for(int i=0;i<512;i++) string+=x; string="pw="+string; URLConnection urlConn=url.openConnection(); urlConn.setRequestProperty("Cookie", string); urlConn.connect(); DataInputStream theHTML = new DataInputStream(urlConn.getInputStream()); String st=theHTML.readLine(); String[] str=st.split("</span>"); for(int i=0;i<lungimeaParolei;i++) if(str[i].contains("green")) pass[i]=x; } public static void main(String[] args) throws MalformedURLException, IOException { URL url=new URL("http://crs12decoder.comoj.com/findpw.php"); int lungimeaParolei=AflaLungimeaParolei(url); System.out.println("Am aflat lungimea parolei: "+lungimeaParolei); char[] pass=new char[lungimeaParolei]; for(char x='a';x<='z';x++) { incearcaPass(url,x,pass,lungimeaParolei); System.out.println("Acum incerc "+x); } //Show the pass System.out.println("Parola este:"); for(int i=0;i<lungimeaParolei;i++) System.out.print(pass[i]); }}Log-ul programuluirun:Am aflat lungimea parolei: 391Acum incerc aAcum incerc bAcum incerc cAcum incerc dAcum incerc eAcum incerc fAcum incerc gAcum incerc hAcum incerc iAcum incerc jAcum incerc kAcum incerc lAcum incerc mAcum incerc nAcum incerc oAcum incerc pAcum incerc qAcum incerc rAcum incerc sAcum incerc tAcum incerc uAcum incerc vAcum incerc wAcum incerc xAcum incerc yAcum incerc zParola este:(ascuns inten?ionat)BUILD SUCCESSFUL (total time: 45 seconds)P.S.: Timpul mare este din cauza ca sunt pe dial-up (128kbps).Pentru curio?i aicijava RstChallenge 2 Quote
-warchild- Posted July 21, 2011 Report Posted July 21, 2011 Uploaded with ImageShack.usm-am folosit de lungimea data de em, sa nu o mai scot eu inca o data import urllib2import stringimport timetarget = "http://crs12decoder.comoj.com/findpw.php"ALPHA = 'abcdefghijklmnopqrstuvwxyz'currentpassword = ['a' for i in range(391)]for i in range(391): currentpassword[i] = 'a'def trypassword(letter): global currentpassword, target temp = '' for i in range(391): temp += letter opener = urllib2.build_opener() opener.addheaders.append(('Cookie','pw=' + temp)) try: f = opener.open(target) except: print 'Connection Timed Out' trypassword(letter) lines = f.readline() chars = lines.split('</span>') for i in range(391): if 'green' in chars[i]: currentpassword[i] = letterfor letter in ALPHA: print 'Trying', letter trypassword(letter)password = ''for i in currentpassword: password += iprint password 1 Quote
BGS Posted July 21, 2011 Report Posted July 21, 2011 (edited) @[warchild] multumesc ca ai postat in py asta asteptam in sfarsit pot sa vad cam cum se putea rezolva in pytx ^'>sunt cam frustrat eu ma gandisem la ceva gen :extrage cookie din firefoxmodifica cookie bagal inapoi in firefoxenjoy Edited July 21, 2011 by BGS Quote