Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can we open a password protected zip file using QTP?
#1
Not Solved
i have a password protected rar file
nd i dont knw password..

i want a run test..with dictionary word increment..like
a
ab
ac ad ae....aaa aab aac aad.......aba abb abc abd.....aca acb acc..

like upto 8 letter word..
if pword iz riight then it will open tht rar file..

so is its automation possible..?
becoz manually it takes more time..Sad[b][size=xx-small]
Reply
#2
Not Solved
Write down the dictionary words in an excel file, then import the excel as datatable sheet.
now write an action to enter the password taking one value from the data table at a time, put a Do loop to repeat this until valid password is entered.
Reply
#3
Not Solved
Password is unique, using regular expression concept for this doesnt make sense

'Just use looping

Code:
alphabets=array("a","b",......."z")



'8 for loops
  'for single letter check eg:a,b...z
for i=0 to 25
   pwd= alphabets(i)
     'use this pwd and check if it is correct password, if yes,print it and ExitTest
    
    'for 2 letters check eg:aa,ab....az
    for j=0 to 25
    pwd=alphabets(i)&alphabets(j)
    'use this pwd and check if it is correct password, if yes,print it and ExitTest
    next

    
    
    'for 3 letters check eg:aaa...aaz,aba..abz.....azz
    for j=0 to 25
        for k=0 to 25
        pwd=alphabets(i)&alphabets(j)&alphabets(k)
        'use this pwd and check if it is correct password, if yes,print it and ExitTest
        next
    next


   'for 4 letters check eg:aaaa........aaaz............azzz
    for j=0 to 25
        for k=0 to 25
            for l=0 to 25
                pwd=alphabets(i)&alphabets(j)&alphabets(k)&alphabets(l)
                'use this pwd and check if it is correct password, if yes,print it and ExitTest
                          next
                 next
         next

'
'
'
'Continue this pattern upto 8 letters
'
'
'
'



next
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Export to Excel Error with file being open schulerswanie 2 4,970 07-10-2012, 11:46 AM
Last Post: Ankesh
  Validating Password field John087 1 4,544 06-18-2012, 04:34 PM
Last Post: Ankesh
  Regular Expression for a Password ritesh 3 4,217 11-16-2010, 03:54 PM
Last Post: ngocvo3103

Forum Jump:


Users browsing this thread: 1 Guest(s)