Results 1 to 9 of 9

Thread: How to insert such these values to a text file??!![RESOLVED]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2003
    Posts
    509

    Question How to insert such these values to a text file??!![RESOLVED]

    Inva
    Last edited by raladin; Mar 29th, 2014 at 09:07 PM.

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989
    Well, isn't someone creating a "word list" for brute force cracking

  3. #3

  4. #4
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959
    Hold on and i'll give it a bash.

  5. #5
    Member
    Join Date
    Jun 2002
    Location
    London
    Posts
    32
    <a href=http://www.kiranreddys.com>Kiran Reddy </a>

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2003
    Posts
    509
    Inva
    Last edited by raladin; Mar 29th, 2014 at 09:07 PM.

  7. #7
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989
    Look at this thread. Look the idea I posted there.
    http://www.vbforums.com/showthread.p...hreadid=292626

    You can use that, except you wont be calculating the sum, you will just add every item to a list. and save that list into a file.

  8. #8
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959
    Try this. For a 5 char combo i stopped going when the txt file got to about 400megs so i dont kow how far that was. Comp can't handle a 400 meg txt file.

    VB Code:
    1. Option Explicit
    2. Private BOOLER          As Boolean
    3. Private numofperms      As Single
    4. Private comboz          As String
    5. Private myarray()       As Byte
    6. Private Const charz     As String = "abcdefghijklmnopqrstuvwxyz0123456789"
    7.  
    8. Private Function APPPATH() As String
    9.  
    10.     If Right$(App.Path, 1) <> "\" Then
    11.         APPPATH = App.Path & "\"
    12.      Else
    13.         APPPATH = App.Path
    14.     End If
    15.  
    16. End Function
    17.  
    18. Private Sub command1_Click()
    19.  
    20.     BOOLER = False
    21.     Open APPPATH & "combos.txt" For Output As #1
    22.     Call GETALLCOMBOZ(charz, 4)  ' 4 = number of character combinations to try
    23.     numofperms = 1
    24.  
    25. End Sub
    26.  
    27. Public Sub GETALLCOMBOZ(ByVal charact As String, _
    28.                   ByVal num As Byte)
    29.  
    30.     ReDim myarray(num)
    31.     Do While Not (BOOLER)
    32.         myarray(numofperms) = myarray(numofperms) + 1
    33.         If numofperms = num Then
    34.             comboz = Left$(comboz, num - 1) + Mid$(charact, myarray(numofperms), 1)
    35.          Else
    36.             comboz = comboz + Mid$(charact, myarray(numofperms), 1)
    37.         End If
    38.         If myarray(numofperms) <> Len(charact) + 1 Then
    39.             If numofperms <> num Then
    40.                 numofperms = numofperms + 1
    41.              Else
    42.                Print #1, comboz
    43.             End If
    44.          Else
    45.             If numofperms = 1 Then
    46.                 BOOLER = True
    47.              Else
    48.                 myarray(numofperms) = 0
    49.                 numofperms = numofperms - 1
    50.                 comboz = Left$(comboz, numofperms - 1)
    51.             End If
    52.         End If
    53.     Loop
    54.     Close #1
    55.  
    56. End Sub

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2003
    Posts
    509
    Inva
    Last edited by raladin; Mar 29th, 2014 at 09:08 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width