Jump to content

sqlite help


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...