Skip to content

Instantly share code, notes, and snippets.

View alistairmcmillan's full-sized avatar
😁

Alistair McMillan alistairmcmillan

😁
View GitHub Profile
# Source: http://rewtdance.blogspot.com/2012/05/bmc-remedy-password-descrambling.html
#!/usr/bin/python
import sys
cipher = []
if len(sys.argv) != 2:
print ("# BMC Remedy Password Descrambler")
print ("# Author: Meatballs")
print ("# Usage: ./password.py ciphertext")
else:
Sub ListCommandBarsAndControls()
Set ws = ThisWorkbook.Sheets("Sheet1")
ws.Rows(1).Cells(1) = "BAR NAME"
ws.Rows(1).Cells(2) = "BAR VISIBLE"
ws.Rows(1).Cells(3) = "BAR BUILTIN"
ws.Rows(1).Cells(4) = "CONTROL ID"
ws.Rows(1).Cells(5) = "CONTROL CAPTION"
ws.Rows(1).Cells(6) = "CONTROL ENABLED"
targetRow = 2
Sub ListCommandBars()
Worksheets("Sheet1").Rows(1).Cells(1) = "NAME"
Worksheets("Sheet1").Rows(1).Cells(2) = "VISIBLE"
Worksheets("Sheet1").Rows(1).Cells(3) = "BUILTIN"
For i = 1 To Application.CommandBars.Count
Set sCmdBar = Application.CommandBars(i)
Worksheets("Sheet1").Rows(i + 1).Cells(1) = sCmdBar.Name
Worksheets("Sheet1").Rows(i + 1).Cells(2) = sCmdBar.Visible
Worksheets("Sheet1").Rows(i + 1).Cells(3) = sCmdBar.BuiltIn
Next i
' WUA must be installed on the computer. For more information about how to determine the version of WUA that is installed, see Determining the Current Version of WUA..
' WUA prompts the user to restart the computer if an update requires a restart.
' The sample can download updates only by using WUA. It cannot download updates from a Software Update Services (SUS) 1.0 server.
' Running this sample requires Windows Script Host (WSH). For more information about WSH, see the WSH section of the Platform Software Development Kit (SDK).
' If the sample is copied to a file named WUA_SearchDownloadInstall.vbs, you can run the sample by opening a Command Prompt window and typing the following command at the command prompt.
' cscript WUA_SearchDownloadInstall.vbs
' or you can create a simple batch file like below and then run that batch file
' cscript WUA_SearchDownloadInstall.vbs
' pause
# © 2007-2013 David Given.
# WordGrinder is licensed under the MIT open source license. See the COPYING
# file in this distribution for the full text.
hide = @
PREFIX = $(HOME)
CC = gcc
WINCC = mingw32-gcc.exe
WINDRES = windres.exe