Jump to content
crs12decoder

find password

Recommended Posts

Posted
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.

Posted
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 :))

Posted (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 baieti

edit: primele 25 ynaerrnhgnidzrg-oyaozmofn

sunt 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 by trxtxx
Posted

betat.png

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 programului


run:
Am aflat lungimea parolei: 391
Acum incerc a
Acum incerc b
Acum incerc c
Acum incerc d
Acum incerc e
Acum incerc f
Acum incerc g
Acum incerc h
Acum incerc i
Acum incerc j
Acum incerc k
Acum incerc l
Acum incerc m
Acum incerc n
Acum incerc o
Acum incerc p
Acum incerc q
Acum incerc r
Acum incerc s
Acum incerc t
Acum incerc u
Acum incerc v
Acum incerc w
Acum incerc x
Acum incerc y
Acum incerc z
Parola 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 aici


java RstChallenge

  • Upvote 2
Posted

backeut.jpg

Uploaded with ImageShack.us

m-am folosit de lungimea data de em, sa nu o mai scot eu inca o data :)


import urllib2
import string
import time

target = "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] = letter

for letter in ALPHA:
print 'Trying', letter
trypassword(letter)

password = ''
for i in currentpassword:
password += i

print password

  • Upvote 1
Posted (edited)

@[warchild] multumesc ca ai postat in py asta asteptam in sfarsit pot sa vad cam cum se putea rezolva :D in py

tx ^<img src=^'>

sunt cam frustrat eu ma gandisem la ceva gen :

extrage cookie din firefox

modifica cookie

bagal inapoi in firefox

enjoy :))

Edited by BGS

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...