[so] [Tema2][Windows]Client in Cygwin

Solomon Avner ravenx86.underworld at gmail.com
Wed Apr 4 13:35:57 EEST 2012


am rezolvat toate probleme legate de decriptare.. am mai rulat o data
toate testele de mana si am verificat sa nu mai apara erori
la fiecare pas de decriptare dar problema initiala legata de checker persista

_________________________________________________________________
                        = Testing - Cryptography =

CreateFile: No error
Code:2
(utils.c, 33): 01) Testing test
1..........................................failed  [ 0/90]
02) Testing test 2..........................................passed  [10/90]
03) Testing test 3..........................................passed  [10/90]
CreateFile: No error
Code:2
(utils.c, 33): CreateFile: No error
Code:2
(utils.c, 33): CreateFile: No error
Code:2
(utils.c, 33): 04) Testing test
4..........................................failed  [ 0/90]
CreateFile: No error
Code:2
(utils.c, 33): CreateFile: No error
Code:2
(utils.c, 33): CreateFile: No error
Code:2
(utils.c, 33): CreateFile: No error
Code:2
(utils.c, 33): 05) Testing test
5..........................................failed  [ 0/90]
06) Testing test 6..........................................passed  [10/90]
07) Testing test 7..........................................passed  [10/90]
CreateFile: No error
Code:2
(utils.c, 33): CreateFile: No error
Code:2
(utils.c, 33): CreateFile: No error
Code:2
(utils.c, 33): 08) Testing test
8..........................................failed  [ 0/90]
09) Testing test 9..........................................passed  [10/90]

                                                            Total:  [50/90]
_________________________________________________________________

                        = Testing - Cryptography =

CreateFile: No error
Code:2
(utils.c, 33): 01) Testing test
1..........................................failed  [ 0/90]
CreateFile: No error
Code:2
(utils.c, 33): 02) Testing test
2..........................................failed  [ 0/90]
CreateFile: No error
Code:2
(utils.c, 33): 03) Testing test
3..........................................failed  [ 0/90]
CreateFile: No error
Code:2
(utils.c, 33): CreateFile: No error
Code:2
(utils.c, 33): CreateFile: No error
Code:2
(utils.c, 33): CreateFile: No error
Code:2
(utils.c, 33): 04) Testing test
4..........................................failed  [ 0/90]
CreateFile: No error
Code:2
(utils.c, 33): 05) Testing test
5..........................................failed  [ 0/90]
CreateFile: No error
Code:2
(utils.c, 33): CreateFile: No error
Code:2
(utils.c, 33): CreateFile: No error
Code:2
(utils.c, 33): CreateFile: No error
Code:2
(utils.c, 33): 06) Testing test
6..........................................failed  [ 0/90]
CreateFile: No error
Code:2
(utils.c, 33): 07) Testing test
7..........................................failed  [ 0/90]
CreateFile: No error
Code:2
(utils.c, 33): CreateFile: No error
Code:2
(utils.c, 33):
_________________________________________________________________

2012/4/4 Solomon Avner <ravenx86.underworld at gmail.com>:
> 2012/4/4 Solomon Avner <ravenx86.underworld at gmail.com>:
>> Eu cand rulez tema de mana cu testele din checker nu am nici-o problema.
>> Mentionez ca o rulez exact in ordinea spusa de tine.
>> ./server 1 & ./server 2 & ./server 3 & ./server 4 & ./gateway &
>> si apoi dau comenzile cu client-ul .. totul ruleaza fara probleme.
>>
>> Cand rulez checker-ul am o mare surpriza
>> (mai jos sunt doua rulari succesive)
>>
>> RavenX86 at RavenX86-PC:~/tema2-checker-win$ ./run_all.sh
>>
>>                        = Testing - Cryptography =
>>
>> CreateFile: No error
>> Code:2
>> (utils.c, 33): 01) Testing test
>> 1..........................................failed  [ 0/90]
>> CreateFile: No error
>> Code:2
>> (utils.c, 33):
>> [1]+  Exit 1                  ./server.exe 1
>>
>> RavenX86 at RavenX86-PC:~/tema2-checker-win$ ./run_all.sh
>>
>>                        = Testing - Cryptography =
>>
>> 01) Testing test 1..........................................passed  [10/90]
>> CreateFile: No error
>> Code:2
>> (utils.c, 33):
>>
>> RavenX86 at RavenX86-PC:~/tema2-checker-win$
>>
>> Nu inteleg de ce uneori imi pik chair si testul 1 daca clientul e
>> rualt dupa gateway.
>> Primul lucru in main in programul gateway deschid "\\\\.\\mailslot\\gateway"
>>
>> Am presupus ca probabil ruleaza clientul inaintea gateway-ului din
>> moment ce probabil checkerul seamana cu cel
>> de pe linux care face asta, nu din rea intentie.
>> Mai exista vre-un motiv pentru care poate aparea acea eroare? (apare
>> total aleatoriu)
>
> Da.. inchid de fiecare data...... dar am gasit ceva care poate duce la
> o parte dintre simptome... unul din servere (server 1)
> arunca intr-un log
>
> WriteFile: No error
> Code:1784
> (crypto.c, 45):
>
> ceea ce duce la un crash.
> Asta poate fi doar de la apel gresit de decrypt, nu?
>
> Mentionez ca nu am putut compila cu .lib-ul  ca imi spunea la link nu
> sunt definite simbolurile corect
> asa ca am dat
>
> hInstance = LoadLibrary("crypto.dll");
>        DIE(hInstance == NULL, "Load Library");
>        //incarcare functii
>        decrypt_base64 = (decrypt_func)GetProcAddress(hInstance, "decrypt_base64");
>           decrypt_des = (decrypt_func)GetProcAddress(hInstance, "decrypt_des");
>            decrypt_bf = (decrypt_func)GetProcAddress(hInstance, "decrypt_bf");
>           decrypt_rc2 = (decrypt_func)GetProcAddress(hInstance, "decrypt_rc2");
>
> dar nu cred ca e de la asta


More information about the so mailing list