کد ماکروی حذف پسورد یلولهای protect شده

Collapse
X
 
  • زمان
  • نمایش
حذف همه
new posts
  • Hamid.Mcse90

    • 2013/09/15
    • 49

    کد ماکروی حذف پسورد یلولهای protect شده

    با سلام تو اینترنت گفته شده پسورد فایلهای آفیس اکسل را میشه حذف کرد کسی میشه مرحله به مرحله توضیح بده
    کد ماکروی حذف پسورد یلولهای protect شد

    Last edited by Hamid.Mcse90; 2014/10/04, 09:29.
  • khakzad

    • 2010/03/17
    • 2034
    • 85.00

    #2
    دوست عزیز
    ی سری نرم افزار هستن که فایل ها رو unprotect می کنن
    اما از طریق کد وی بی فکر نمی کنم.
    دوستان اگر اطلاع دارن ممنون میشیم توضیح بدن
    [CENTER][B][COLOR=#008000][SIZE=3]محصولات و جزوات آموزش تخصصی [URL="https://excelpedia.net/"]اکسل[/URL] در:

    [URL="https://excelpedia.net/category/excel-functions/"]برترین مرجع تخصصی پارسی اکسل[/URL]
    [URL="http://www.exceliran.com/shop/"]جامعه اكسل ايرانيان: فروشگاه[/URL][/SIZE][/COLOR][/B]
    :wcom:

    [B][URL="https://excelpedia.net/"]آموزش اکسل تخصصی[/URL] و [URL="https://excelpedia.net/excel-ninja/"]پیشرفته[/URL] - [URL="https://excelpedia.net/"]تهران[/URL][/B]
    [EMAIL="h.khakzad@yahoo.com"]h.khakzad@yahoo.com[/EMAIL]
    [/CENTER]

    کامنت

    • ali.b

      • 2014/01/12
      • 798

      #3
      کد PHP:
      Sub Macro1()
      '
      Breaks worksheet and workbook structure passwordsJason S
       
      ' probably originator of base code algorithm modified for coverage
       
      of workbook structure windows passwords and for multiple passwords
       
      ' Jason S http://jsbi.blogspot.com
       
      Reveals hashed passwords NOT original passwords
       
      Const DBLSPACE As String vbNewLine vbNewLine
       
      Const AUTHORS As String DBLSPACE vbNewLine "Adapted from Bob McCormick base code by" "Jason S http://jsbi.blogspot.com"
       
      Const HEADER As String "AllInternalPasswords User Message"
       
      Const VERSION As String DBLSPACE "Version 1.0 8 Sep 2008"
       
      Const REPBACK As String DBLSPACE "Please report failure to jasonblr@gmail.com "
       
      Const ALLCLEAR As String DBLSPACE "The workbook should be cleared"
       
      Const MSGNOPWORDS1 As String "There were no passwords on " AUTHORS VERSION
       
      Const MSGNOPWORDS2 As String "There was no protection to " "workbook structure or windows." DBLSPACE
       
       
      Const MSGTAKETIME As String "After pressing OK button this " "will take some time." DBLSPACE "Amount of time " "depends on how many different passwords, the "
       
       
       
      Const MSGPWORDFOUND1 As String "You had a Worksheet " "Structure or Windows Password set." DBLSPACE "The password found was: " DBLSPACE "$$" DBLSPACE "Note it down for potential future use in other workbooks by " "the same person who set this password." DBLSPACE "Now to check and clear other passwords." AUTHORS VERSION
       
      Const MSGPWORDFOUND2 As String "You had a Worksheet " "password set." DBLSPACE "The password found was: " DBLSPACE "$$" DBLSPACE "Note it down for potential " "future use in other workbooks by same person who " "set this password." DBLSPACE "Now to check and clear " "other passwords." AUTHORS VERSION
       
      Const MSGONLYONE As String "Only structure / windows " "protected with the password that was just found." ALLCLEAR AUTHORS VERSION REPBACK
       
      Dim w1 
      As Worksheetw2 As Worksheet
       
      Dim i 
      As IntegerAs IntegerAs IntegerAs Integer
       
      Dim m 
      As IntegerAs Integeri1 As Integeri2 As Integer
       
      Dim i3 
      As Integeri4 As Integeri5 As Integeri6 As Integer
       
      Dim PWord1 
      As String
       
      Dim ShTag 
      As BooleanWinTag As Boolean
       
      Application
      .ScreenUpdating False
       
      With ActiveWorkbook
       
      WinTag 
      = .ProtectStructure Or .ProtectWindows
       
      End With
       
      ShTag 
      False
       
      For Each w1 In Worksheets
       
      ShTag 
      ShTag Or w1.ProtectContents
       
      Next w1
       
      If Not ShTag And Not WinTag Then
       
      MsgBox MSGNOPWORDS1
      vbInformationHEADER
       
      Exit Sub
       
      End 
      If
       
      MsgBox MSGTAKETIMEvbInformationHEADER
       
      If Not WinTag Then
       
      MsgBox MSGNOPWORDS2
      vbInformationHEADER
       
      Else
       
      On Error Resume Next
       
      Do 'dummy do loop
       
      For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
       
      For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
       
      For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
       
      For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126
       
      With ActiveWorkbook
       
      .Unprotect Chr(i) & Chr(j) & Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
       
      If .ProtectStructure = False And .ProtectWindows = False Then
       
      PWord1 = Chr(i) & Chr(j) & Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
       
      MsgBox Application.Substitute(MSGPWORDFOUND1, "$$", PWord1), vbInformation, HEADER
       
      Exit Do '
      Bypass all for...nexts
       
      End 
      If
       
      End With
       
      Next
      NextNextNextNextNext
       
      Next
      NextNextNextNextNext
       
      Loop Until True
       
      On Error 
      GoTo 0
       
      End 
      If
       
      If 
      WinTag And Not ShTag Then
       
      MsgBox MSGONLYONE
      vbInformationHEADER
       
      Exit Sub
       
      End 
      If
       
      On Error Resume Next
       
      For Each w1 In Worksheets
       
      'Attempt clearance with PWord1
       
      w1.Unprotect PWord1
       
      Next w1
       
      On Error GoTo 0
       
      ShTag = False
       
      For Each w1 In Worksheets
       
      '
      Checks for all clear ShTag triggered to 1 if not.
       
      ShTag ShTag Or w1.ProtectContents
       
      Next w1
       
      If ShTag Then
       
      For Each w1 In Worksheets
       
      With w1
       
      If .ProtectContents Then
       
      On Error Resume Next
       
      Do 'Dummy do loop
       
      For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
       
      For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
       
      For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
       
      For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126
       
      .Unprotect Chr(i) & Chr(j) & Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
       
      If Not .ProtectContents Then
       
      PWord1 = Chr(i) & Chr(j) & Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
       
      MsgBox Application.Substitute(MSGPWORDFOUND2, "$$", PWord1), vbInformation, HEADER
       
      '
      leverage finding Pword by trying on other sheets
       
      For Each w2 In Worksheets
       
      w2
      .Unprotect PWord1
       
      Next w2
       
      Exit Do 'Bypass all for...nexts
       
      End If
       
      Next: Next: Next: Next: Next: Next
       
      Next: Next: Next: Next: Next: Next
       
      Loop Until True
       
      On Error GoTo 0
       
      End If
       
      End With
       
      Next w1
       
      End If
       
      MsgBox ALLCLEAR & AUTHORS & VERSION & REPBACK, vbInformation, HEADER
      '
      End Sub 
      با این کد در محیط Vb میتونید پسورد رو بردارین و بعد از اجرا فایل رو save as کنید
      و در تالار vb این نرم افزار رو سرچ کنید VBA Password Bypasser
      این هم زمانی که حتی خود Vb قفل باشه کارتون رو راه میندازه
      [CENTER]
      [/CENTER]

      کامنت

      • حسام بحرانی

        • 2013/09/29
        • 2065
        • 72.00

        #4
        نوشته اصلی توسط Hamid.Mcse90
        با سلام تو اینترنت گفته شده پسورد فایلهای آفیس اکسل را میشه حذف کرد کسی میشه مرحله به مرحله توضیح بده
        کد ماکروی حذف پسورد یلولهای protect شده
        سلام،
        به تاپیک های زیر مراجعه کنید:
        ماکرو حذف پسورد
        ماژول باز کننده قفل شیت رمزدار

        موفق باشید.
        [CENTER][B][SIZE=5][COLOR=#006600][FONT=georgia][COLOR=#800000]!With [/COLOR][/FONT][/COLOR][COLOR=#006600][FONT=georgia]God [/FONT][/COLOR][COLOR=#006600][FONT=georgia][COLOR=#800000]all [/COLOR][/FONT][/COLOR][COLOR=#800000][FONT=georgia]things are [/FONT][/COLOR][COLOR=#006600][FONT=georgia]possible[/FONT][/COLOR][/SIZE][/B][B][FONT=Tahoma]
        [/FONT][/B][/CENTER]
        [CENTER][B][FONT=Tahoma] [IMG]http://forum.exceliran.com/attachment.php?attachmentid=5334&d=1419428336[/IMG]
        [/FONT][/B][SIZE=1][FONT=Tahoma][B][FONT=Tahoma]
        [/FONT][/B][/FONT][/SIZE]
        [/CENTER]

        کامنت

        • Hamid.Mcse90

          • 2013/09/15
          • 49

          #5
          سلام دوست عزیز شمارتو میشه بفرستی سوال راجهع به ماکرو دارم

          کامنت

          • حسام بحرانی

            • 2013/09/29
            • 2065
            • 72.00

            #6
            نوشته اصلی توسط Hamid.Mcse90
            سلام دوست عزیز شمارتو میشه بفرستی سوال راجع به ماکرو دارم
            سلام
            همانطور که احتمالاً ( پس از یک سال حضور در انجمن ) میدانید، اصولاً در انجمن ها و فروم ها رسم نیست که توسط پست الکترونیکی، چت، پیام های خصوصی و کلیه امکاناتی که به هر نحو باعث شخصی سازی سؤالات، آموزش ها، ترفندها، و ... می شوند، به کاربران محترم، پاسخ داده شود. در این سایت، با توجه رسالت آن ( آموزش برای همه )، یکی از قوانین آن، تأکید بر این اصول است:
            1* جستجوی عناوین تالارها در انجمن و یافتن پاسخ مشابه و آنگاه مطرح نمودن سؤال در همان زمینه
            2* در صورت پیدا نکردن مطلب مورد نظر، ایجاد تاپیک جدید در زمینه سؤال خود
            3* پرهیز از درخواست خصوصی در زمینه سؤالات شخصی
            4* نهایتاً در صورت محرمانه بودن سؤال مربوطه، از طریق سفارش پروژه
            * به حل آن اقدام نمایید.
            رسالت این سایت این است که مطالب آموزشی را در اختیار همه کاربران قرار دهد.
            موفق باشید.

            [CENTER][B][SIZE=5][COLOR=#006600][FONT=georgia][COLOR=#800000]!With [/COLOR][/FONT][/COLOR][COLOR=#006600][FONT=georgia]God [/FONT][/COLOR][COLOR=#006600][FONT=georgia][COLOR=#800000]all [/COLOR][/FONT][/COLOR][COLOR=#800000][FONT=georgia]things are [/FONT][/COLOR][COLOR=#006600][FONT=georgia]possible[/FONT][/COLOR][/SIZE][/B][B][FONT=Tahoma]
            [/FONT][/B][/CENTER]
            [CENTER][B][FONT=Tahoma] [IMG]http://forum.exceliran.com/attachment.php?attachmentid=5334&d=1419428336[/IMG]
            [/FONT][/B][SIZE=1][FONT=Tahoma][B][FONT=Tahoma]
            [/FONT][/B][/FONT][/SIZE]
            [/CENTER]

            کامنت

            چند لحظه..