Jump to content
Sign in to follow this  
metalicaman8

sqlite help

Recommended Posts

metalicaman8

I am a total noob at sql/mysql/sqlite. Can someone please help me with this script? Description of the problem is in the code as a comment.

#include <GUIConstants.au3>
#include <string.au3>
#include "stringhash.au3"
#include <file.au3>
#include <GUIComboBox.au3>
#include <array.au3>
#include "progress.au3"

$mainwin = GUICreate("Sha1 Dictionary Creator", 400, 400)
$button = GUICtrlCreateButton("Create Dictionary from wordlist",20,380)
$file = FileOpenDialog("Select wordlist", @MyDocumentsDir, "Text files (*.txt)")
$dict = FileOpen($file,0)
$lines = _FileCountLines($dict)
GUISetState()
While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
        Case $button
            $time = TimerInit()
            ;create progress bar
            Dim $progress, $main, $sub
            $progr = _ProgressOn($progress, $main, $sub, "Dictionary Attack", "Line 0", 12, 80)
            For $i = 1 To $lines
                $hash = _stringhash(FileReadLine($dict, $i), 1)
                ;Right here I need to save $hash to $i row in column 1 of an sql table and save FileReadLine($dict, $i) to $i row in column 2 of the same sql table.  Can someone please help me with the mysql functions?
            Next
    EndSwitch
WEnd

Share this post


Link to post
Share on other sites
PsaltyDS

I am a total noob at sql/mysql/sqlite. Can someone please help me with this script? Description of the problem is in the code as a comment.

#include <GUIConstants.au3>
#include <string.au3>
#include "stringhash.au3"
#include <file.au3>
#include <GUIComboBox.au3>
#include <array.au3>
#include "progress.au3"

$mainwin = GUICreate("Sha1 Dictionary Creator", 400, 400)
$button = GUICtrlCreateButton("Create Dictionary from wordlist",20,380)
$file = FileOpenDialog("Select wordlist", @MyDocumentsDir, "Text files (*.txt)")
$dict = FileOpen($file,0)
$lines = _FileCountLines($dict)
GUISetState()
While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
        Case $button
            $time = TimerInit()
            ;create progress bar
            Dim $progress, $main, $sub
            $progr = _ProgressOn($progress, $main, $sub, "Dictionary Attack", "Line 0", 12, 80)
            For $i = 1 To $lines
                $hash = _stringhash(FileReadLine($dict, $i), 1)
                ;Right here I need to save $hash to $i row in column 1 of an sql table and save FileReadLine($dict, $i) to $i row in column 2 of the same sql table.  Can someone please help me with the mysql functions?
            Next
    EndSwitch
WEnd
You didn't even ATTEMPT any SQL code at all, and you want help with an SHA1 "Dictionary Attack"...

:(

No.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.