This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <RulePack xmlns="xmlns://www.fortifysoftware.com/schema/rules"> | |
| <RulePackID>950F4B5A-85D0-4954-97D5-35C3F0285057</RulePackID> | |
| <SKU>SKU-C:\Users\dinis\AppData\Local\Fortify\CRE-3.90\rules\custom-rule</SKU> | |
| <Name>SimpleVersion-CustomDescriptionRule</Name> | |
| <Version>1.0</Version> | |
| <Description> | |
| Description of RulePack | |
| </Description> | |
| <Rules version = "3.16"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //var ie = "ie_Ujmdj".o2Cache<WatiN_IE>(()=> panel.clear().add_IE()).silent(true); // ie ramdon value for o2cache makes this object to unique amongst multiple instances of this control | |
| var topPanel = panel.clear().add_Panel(); | |
| var ie = topPanel.add_IE(); | |
| Func<string,string,bool> login = | |
| (username, password)=> | |
| { | |
| ie.open("http://localhost:15582/HacmeBank_v2_Website/aspx/login.aspx"); | |
| ie.field("txtUserName").value(username); | |
| ie.field("txtPassword").value(password); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //O2Include:PoC - Fuzzing Images.h2 | |
| var baseFolder = @"C:\Users\o2\AppData\Roaming\OWASP_O2_Platform_5.3\8_15_2013"; | |
| var sourceFolder = baseFolder.pathCombine("badImages_Ico"); | |
| //maxItems = 10; | |
| fuzzFromFolder(sourceFolder); | |
| return "done"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //var topPanel = panel.clear().add_Panel(); | |
| var topPanel = "Tool - Quick Hex File Viewer".popupWindow(650,400); | |
| var tableList = topPanel.add_TableList(); | |
| tableList.field("resizeColumnsWidth",false); | |
| tableList.links().forEach<Control>(link=>link.visible(false)); | |
| tableList.add_Columns("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","","As String"); | |
| tableList.set_ColumnsWidth(25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,50); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var apiZap = new API_Zap(); | |
| apiZap.Launch(); | |
| var process = apiZap.ZapProcess; | |
| process.waitFor_MainWindowHandle(); | |
| var o2Injector = new API_O2_Injector(); | |
| o2Injector.injectIntoProcess(process, false,true); | |
| //using OWASP | |
| //O2File:API_Zap.cs | |
| //O2File:API_O2_Injector.cs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Web.Https.ignoreServerSslErrors(); // in case we have fiddler on | |
| //var topPanel = panel.clear().add_Panel(); // use when in developent | |
| var topPanel = "PoC - View TeamMentor Article (using GUID)".popupWindow(1200,500); // use when done | |
| Func<string,string,string,string> getArticle = | |
| (contentType, articleId, sessionId) | |
| => { | |
| var tmArticleUrl = "https://teammentor.net/{0}/{1}"; // REST GET call for content | |
| return tmArticleUrl.format(contentType,articleId) // set contentType and session |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var baseFolder = @"E:\TeamMentor\Libraries\SI Library"; | |
| var contentRepo = "[email protected]:TMContent/{0}.git"; | |
| var libraries = new [] { "Lib_PHP", "Lib_CWE", "Lib_iOS","Lib_Android", "Lib_PCI_DSS_Compliance", | |
| "Lib_.NET_4.0", "Lib_.NET_3.5", "Lib_.NET_2.0","Lib_Java", "Lib_CPP", | |
| "Lib_Vulnerabilities", "Lib_Scala", "Lib_HTML5" }; | |
| var stopWatch = utils.new_Stopwatch(); | |
| foreach(var library in libraries) | |
| { | |
| var gitRepo = contentRepo.format(library); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| echo "test" | |
| java -Xms256M -Xmx768M -XX:MaxPermSize=512M \ | |
| -jar "/Users/zen/Fortify-Plugin/Eclipses/eclipse_x32-3.7_Indigo/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar" \ | |
| -application "org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplication" \ | |
| -testApplication "com.yourcompany.application" \ | |
| -data "/Users/zen/Fortify-Plugin/Eclipses/workspaces/eclipse_x32-3.7_Indigo" \ | |
| -testPluginName "test.maven.swt.bot-1.0.0-SNAPSHOT.jar" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.eclipse.swtbot.eclipse.finder.*; | |
| import org.eclipse.swtbot.swt.finder.utils.* | |
| Thread.start | |
| { | |
| SWTBotPreferences.TIMEOUT = 100; | |
| try | |
| { | |
| def bot = new SWTWorkbenchBot(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //using TeamMentor.CoreLib | |
| //O2Ref:E:\TeamMentor\TM_Releases\Master_3_4\Web Applications\TM_Website\bin\TeamMentor.CoreLib.dll | |
| var tmLibraryDir = @"E:\TeamMentor\TM_Releases\Master_3_4\Library_Data\XmlDatabase\TM_Libraries"; | |
| //var topPanel = O2Gui.open<Panel>("{name}",700,400); | |
| var topPanel = panel.clear().add_Panel(); | |
| var mappings = new Dictionary<string,List<string>>(); | |
| var itemsToProcess = 100000; | |
| var xmlFiles = tmLibraryDir.files("*.xml",true).Take(itemsToProcess); | |
| var xmlFile = xmlFiles.last(); |