Database Password Recovery

If you don't remember your password, this will help you.

Just put your login, the ODBC data source and run this script.
Wait for it to display your password if you forgot it.
If the password has many letters, it could take days.
To speed up, configure the ODBC connection pooling.

File Name : force_db.vbs
Requirement : ODBC and a connection configured to the database
Author : Jean-Luc Antoine
Submitted : 08/09/2001
Category : 4K
option explicit
Dim DataConn, y, PWDVal

' **** Modify these two lines ****
Const dsnVal="My Data Source Name From the Control Panel"
const UIDVal="MYLOGIN"

'*** and this line if you want to speed up
Const Alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/*-+&#$_"

'Restart in console mode to display logs
if Right(ucase(wscript.FullName),11)="WSCRIPT.EXE" then
    Set y = WScript.CreateObject("WScript.Shell")
    y.Run "cscript.exe " & wscript.ScriptFullName , 1
    wscript.quit
end if

Set DataConn = CreateObject("ADODB.Connection")

PWDVal = Left(Alphabet,1)
Dim x
x=0
Do while Not OpenODBC
	x=x+1
	'Avoid displaying all : for speed
	If x Mod 20 =0 Then wscript.echo PWDVal
	GenerePWD
Loop
'WScript.Echo OpenODBC
WScript.Echo "Found : " & PWDVal

Sub GenerePWD
    Dim c,R
    c=Right(Alphabet,1)
    Do While (Right(PWDVal,1)=c) And (PWDVal<>"")
	If PWDVal=c Then
	    PWDVal=""
	    R=R & Left(Alphabet,1)
	Else
	    PWDVal=Left(PWDVal,Len(PWDVAL)-1)
	End If
	R=R & Left(Alphabet,1)
    Loop
    If PWDVal<>"" then
	PWDVal=Left(PWDVal,Len(PWDVAL)-1) & Mid(Alphabet,Instr(Alphabet,Right(PWDVal,1))+1,1)
    End If
    PWDVal=PWDVal & R
End Sub

Function OpenODBC()
	OpenODBC = False
	On Error resume next
	DataConn.open "DSN=" & DsnVal & ";UID=" & UIDVal & ";PWD=" & PWDVal & ";"
	If Err.Number=0 then
		OpenODBC = True
	End If
End Function
Server Info
Remote Info
Compress

Batchs
BootSector
Droit
Accessoire GFA
On Now
Ecran plasma
Système d'exploitation
Son
Unités
Scripting
Multilingue
Site Web
Bruit et son
Architecture Google


4K
Color picker
TaskList
Backup files
Mini Port Scanner
Website To CHM
PixyDemo
Web password recovery
4KWebServer
Kill Popup
VBE decoder
Script Optimizer
Database Password Recovery
Class
Ini
EMail validator
Graphical Class
MP3 Info
Pinger Class
IP ranger class
SoftwareMetering
Path Validator
Time Stamper Class
LoggerCLS
HTA
Keyword Ranking
DOM Explorer
HTA-Notepad
PixyPortManager
Other
flashMessage
Kill Popup
VBE decoder (fixed)
Error Codes
Maze generator
Char counter
HTML To Word
ICQ Choose User
ScreenSaver Password decoder
Mp3Playlister - singleList
Long Filename To Short
Trace Math
Dump Hexa File
Self modifying script
Mp3Playlister - multiList
HTANoid
PixyWebServer
Python
Progress indication

©2002 Jean-Luc Antoine. All Rights Reserved. Scripts or any other material on this website may not be redistributed or put as part of ANY collection (script archives, CDs etc) without prior written permission. Permission granted to use and modify any of the scripts found on InterClasse.com