Jump to content
puskin

Closed

Recommended Posts

Posted

Salve!

Am nevoie de ajutor pentru a decrypta un text codat in limbajul VB6

Am modulul de encryptare-decryptare, am si textul care trebuie decriptat..(textul nu este important...vreau numai sa stiu daca functioneaza decryptorul...).Problema este urmatoarea am codat textul dar cand dau sa-l decodez surpriza...imi scoate fisierul cu txt "0 Biti".

Cel mai bine ar fi sa se poata decoda direct textul, nu neaparat un fisier.

Ii multumesc anticipat celui care ma ajuta.

Link pt Download module :

http://rapidshare.com/files/108973007/modules.zip.html

Mai jos sa vedeti cum arata incriptarea si textul encryptat:

P.S cine ma ajuta sa-l decodez primeste codul sursa + programul aplicatiei...care este 100% nedetectata 100% automata


Public Function UUEncodeFile(strFilePath As String) As String
Dim intFile As Integer 'file handler
Dim intTempFile As Integer 'temp file
Dim lFileSize As Long 'size of the file
Dim strFileName As String 'name of the file
Dim strFileData As String 'file data chunk
Dim lEncodedLines As Long 'number of encoded lines
Dim strTempLine As String 'temporary string
Dim i As Long 'loop counter
Dim j As Integer 'loop counter
Dim strResult As String
'Get file name
strFileName = Mid$(strFilePath, InStrRev(strFilePath, "\") + 1)
'This important: "begin 664"
strResult = "begin 664 " + strFileName + vbLf
'Get file size
lFileSize = FileLen(strFilePath)
lEncodedLines = lFileSize / 45 + 1
'you need to encode every 45 bytes
strFileData = Space(45)
intFile = FreeFile
'open the output file
Open strFilePath For Binary As intFile
For i = 1 To lEncodedLines
If i = lEncodedLines Then
strFileData = Space(lFileSize Mod 45)
End If
'get data
Get intFile, , strFileData
'the first byte in a line is a char, which number describes
'how many bytes are in the line
strTempLine = Chr(Len(strFileData) + 32)
If i = lEncodedLines And (Len(strFileData) Mod 3) Then
strFileData = strFileData + Space(3 - (Len(strFileData) Mod 3))
End If
'now some encoding
For j = 1 To Len(strFileData) Step 3
strTempLine = strTempLine + Chr(Asc(Mid(strFileData, j, 1)) \ 4 + 32)
strTempLine = strTempLine + Chr((Asc(Mid(strFileData, j, 1)) Mod 4) * 16 _
+ Asc(Mid(strFileData, j + 1, 1)) \ 16 + 32)
strTempLine = strTempLine + Chr((Asc(Mid(strFileData, j + 1, 1)) Mod 16) * 4 _
+ Asc(Mid(strFileData, j + 2, 1)) \ 64 + 32)
strTempLine = strTempLine + Chr(Asc(Mid(strFileData, j + 2, 1)) Mod 64 + 32)
Next j
strResult = strResult + strTempLine + vbLf
strTempLine = ""
'get next line
Next i
'close the file
Close intFile
'add the "end" string
strResult = strResult & "'" & vbLf + "end" + vbLf
'return the encoded string
UUEncodeFile = strResult
End Function

Aici decryptorul:


Public Function UUDecodeToFile(strUUCodeData As String, strFilePath As String)
On Error Resume Next
Dim vDataLine As Variant 'some variables needed for decoding
Dim vDataLines As Variant
Dim strDataLine As String
Dim intSymbols As Integer
Dim intFile As Integer
Dim strTemp As String
If Left$(strUUCodeData, 6) = "begin " Then 'check if it is a encoded file
strUUCodeData = Mid$(strUUCodeData, InStr(1, strUUCodeData, vbLf) + 1)
End If
If Right$(strUUCodeData, 4) = "end" + vbLf Then 'check if "end" is available
strUUCodeData = Left$(strUUCodeData, Len(strUUCodeData) - 7)
End If
intFile = FreeFile
Open strFilePath For Binary As intFile 'open output file
vDataLines = Split(strUUCodeData, vbLf)
For Each vDataLine In vDataLines 'get every line
strDataLine = CStr(vDataLine)
intSymbols = Asc(Left$(strDataLine, 1)) 'get number of chars in
'one line. This is important
'for decoding
strDataLine = Mid$(strDataLine, 2, intSymbols)
For i = 1 To Len(strDataLine) Step 4
'now some decoding
strTemp = strTemp + Chr((Asc(Mid(strDataLine, i, 1)) - 32) * 4 + _
(Asc(Mid(strDataLine, i + 1, 1)) - 32) \ 16)
strTemp = strTemp + Chr((Asc(Mid(strDataLine, i + 1, 1)) Mod 16) * 16 + _
(Asc(Mid(strDataLine, i + 2, 1)) - 32) \ 4)
strTemp = strTemp + Chr((Asc(Mid(strDataLine, i + 2, 1)) Mod 4) * 64 + _
Asc(Mid(strDataLine, i + 3, 1)) - 32)
Next i
'put the decoded data in the file
Put intFile, , strTemp
strTemp = ""
Next
'close the file
Close intFile
End Function

Si textul :


begin 664 sysdll.txt
M4W1A<G1E9#H@-"\R,"\R,# #,Z,C<Z,#(@4$T-"@T*57-E<B!.86UE.B!X
M=&5A;0T*0V]M<'5T97(@3F%M93H@1$5&14Y#13(Y34E,#0I$3TU!24XZ($1%
M1D5.0T4R.4U)3 T*25 Z(#$Y,BXQ-C@N,"XU- T*#0I;,SHR-SHQ,"!035T\
M/%5N=&ET;&5D("T@3F]T97!A9#X^"5-34U-34U-34U-34U-34U-34U-34U-3
M4U-34U-34U-34U-34U-34U-34U-34U-34U-34U-34U-34U-34U-34U-34U-3
M4U-34U-34U-34U-34U-34U-34U-34U-34U-34U-34U-34U-34U-34U-34U-3
M4U-34U-34U-34U-34U-34U-34U,-"ELS.C(W.C$P(%!-73P\5&]T86P@0V]M
M;6%N9&5R(#<N,"!P=6)L:6,@8F5T82 R("T@3D]4(%)%1TE35$52140^/@D-
M"ELS.C(W.C$W(%!-73P\56YT:71L960@+2!.;W1E<&%D/CX)6T8Q,ET-"@T*
M16YD960Z(#0O,C O,C P." S.C(W.C$%!-#0H-"D%23TT@;65N=&EN92!S
M:2!D97IV;VQT82!P87)T96YE<FEA=&4@8W4@8V5L92!M86D@<F5N=6UI=&4@
M8V]M<&%N:6D@97AT97)N92!P96YT<G4@;R!M86D@8G5N82!A8V]P97)I<F4@
M82!N979O:6QO<B!C86QA=&]R:6QO<BX@4&4@;&%N9V$@8V5L92 Q-3 @9&4@
M8V]N=')A8W1E(&)I;&%T97)A;&4@8W4@8V]M<&%N:6D@9&EN(&EN=')E86=A
M(&QU;64L(%1!4D]-(',M82!O<FEE;G1A="!S:2!C871R92!P87)T96YE<FEA
M=&4@8V]D92US:&%R92!C=2!A;'1E(&-O;7!A;FEI(&1E(&UA<F-A('!E;G1R
M=2!A('9E;FD@:6X@:6YT86UP:6YA<F5A(&-L:65N=&EL;W(N4RY#+B!#;VUP
M86YI82!.871I;VYA;&$@9&4@5')A;G-P;W)T=7)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V5N97)A;"!A;"!0;VQI=&EE:2!2;VUA;F4@
M<VD@8W4@<F5S<&5C=&%R96$@86-O<F1U<FEL;W(@<VD@8V]N=F5N=&EI;&]R
M(&EN=&5R;F%T:6]N86QE(&QA(&-A<F4@4F]M86YI82!E<W1E('!A<G1E+@T*
M(" @-2X@4')E=F5D97)I;&4@<')E>F5N=&5I(&]R9&]N86YT92!D92!U<F=E
M;G1A('-E(&%P;&EC82!T=71U<F]R('!A<G1I8VEP86YT:6QO<B!L82!T<F%F
M:6,L('!R96-U;2!S:2!A=71O<FET871I;&]R(&-A<F4@874@871R:6)U=&EI
M(&EN(&1O;65N:75L(&-I<F-U;&%T:65I('-I('-I9W5R86YT96D@<&4@9')U
M;75R:6QE('!U8FQI8V4L('!R96-U;2!S:2!I;B!D;VUE;FEU;"!P<F]T96-T
M:65I(&UE9&EU;'5I+@T*#0H-"@T*07)T+B R+B!);F1R=6UA<F5A+"!S=7!R
M879E9VAE<F5A('-I(&-O;G1R;VQU;"!R97-P96-T87)I:2!N;W)M96QO<B!D
M92!C:7)C=6QA=&EE('!E(&1R=6UU<FEL92!P=6)L:6-E('-E(&9A8R!D92!C
M871R92!P;VQI=&EA(')U=&EE<F$@9&EN(&-A9')U;"!);G-P96-T;W)A='5L
M=6D@1V5N97)A;"!A;"!0;VQI=&EE:2!2;VUA;F4L(&-A<F4@87)E(&]B;&EG
M871I82!S82!I82!M87-U<FEL92!L96=A;&4@:6X@8V%Z=6P@:6X@8V%R92!C
M;VYS=&%T82!I;F-A;&-A<FD@86QE(&%C97-T;W)A+@T*#0H-"D%R="X@,RX@
M0VER8W5L871I82!P92!D<G5M=7)I;&4@<'5B;&EC92!D:6X@>F]N82!D92!F
M<F]N=&EE<F$@<VD@9&EN(&%L=&4@>F]N92!P96YT<G4@8V%R92P@<&]T<FEV
M:70@;&5G:6DL(',M874@<W1A8FEL:70@<F5S=')I8W1I:2!S92!F86-E(&-U
M(')E<W!E8W1A<F5A(')E9VQE;65N=&%R:6QO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.2!035T\/%1O=&%L($-O;6UA;F1E<B W+C @
M<'5B;&EC(&)E=&$@,B M($Y/5"!214=)4U1%4D5$/CX)#0I;,SHT-#HU,"!0
M35T\/%-T87)T($UE;G4^/@D-"ELS.C0T.C4U(%!-73P\56YT:71L960@+2!.
M;W1E<&%D/CX)4E)24E)24E)24E)24E)24E)24E)24E)24E)24E)24E)24E)2
M4E)24E)24E)24E)24E)24E)24E)24E)24E)24E)24E)2#0H-"D5N9&5D.B T
M+S(P+S(P,#@@,SHT-#HU-2!030T*#0H
7 @
'
end

Ca sa fiu mai explicit:

-programul genereaza fisierul pe calculatorul iar cand atinge dimeniunea de 5000 de biti (5Kb) este incryptat si trimis ca attach pe mail...numai ca el imi vine pe email in urmatorul mod (in nici un caz attach!)...e vreo posibilitate sa decodez textul?:

i1707315_poza1.jpg

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