I just spent a little bit applying a new design to this blog and cleaning up the layout a bit (hopefully it will make it easier to use and to find the best bits)
A personal blog about: transforming Web Application Security into an 'Application Visibility' engine, the OWASP O2 Platform, Application/Data interoperability and a lot more
Friday, 23 November 2012
Thursday, 22 November 2012
Tool to view (and unload) the AppDomains in the current .Net Process
As I was trying to execute an script/app in a separate AppDomain, I realized that there wasn't an easy way to look at the details of the currently loaded AppDomains
Labels:
O2 Platform
Wednesday, 21 November 2012
Use FluentSharp to create ToolStrips items (buttons, textbox, checkboxes) with icons
Based on the 215 Tango Library Icons added to FluentsSharp.BCL , here is how to use the FluentSharp.BCL APIs to easily create ToolStrips
Labels:
FluentSharp,
O2 Platform
Improved script to compile and show an modified UserControl inside VisualStudio
Here is an updated version of the example described in the Real-time Programming C# WinForms Controls in VisualStudio's IDE (i.e. without using F5) post.
Labels:
REPL,
VisualStudio
Windows Shatter attacks (research links)
Following on my research on Win32 Messaging and the O2's Util - Windows Handles Viewer tool, I just started the day by (re)reading about the Windows Shatter attacks (since it used Windows Messages)
Labels:
Security as TAX,
WinAPI
Tuesday, 20 November 2012
Two 6-months contract to work on TeamMentor (QA and Dev)
Here is a heads up for an official 'SI job hiring' post that should be published asap (i.e. when we get it done).
Labels:
Contract Work,
TeamMentor
Util - Windows Handles Viewer (Simple GUI with REPL) v1.0.exe
Based on the Util - Windows Handles Viewer (Simple Gui) v1.0.exe tool, here is a bigger version (5Mbs) which contains a C# REPL Script editor (with the detected handle provided as a parameter).
You can get this version from Util - Windows Handles Viewer (Simple GUI with REPL) v1.0.exe
You can get this version from Util - Windows Handles Viewer (Simple GUI with REPL) v1.0.exe
Labels:
O2 Platform Tool,
WinAPI
Util - Windows Handles Viewer (Simple Gui) v1.0.exe
Following my research into Win32 Messaging APIs that allowed me to put both IBM AppScan Source and Standard working side by side and to connect TeamMentor with AppScan Source, here is a pretty sweet Windows Handles Viewer which allows the easy discovery (and in some cases modification) of the Window's Handle of a particular Win32's Button, TextBox, Menu, Window, etc...
You can download this (857kb) .NET 4.0 app from Util - Windows Handles Viewer (Simple Gui) v1.0.exe
You can download this (857kb) .NET 4.0 app from Util - Windows Handles Viewer (Simple Gui) v1.0.exe
Labels:
O2 Platform Tool,
WinAPI
Saturday, 17 November 2012
Good resources on User32.dll windows messaging
Here are a number of good resources I found went I was researching the solution that allowed me to Inject a .NET REPL into an Unmanaged/C++ Application
Labels:
WinAPI
Making Java, .Net and C++ apps work together
This past week I was in the 'zone' (coding 16h a day) and as you can see by the links below, I was able to (finally) find a way to make Java, .Net and C++ apps work together.
I've 'only' been trying to do this for the past 5 years.
There are two key technological concepts at play here (which can work together or isolation)
I've 'only' been trying to do this for the past 5 years.
There are two key technological concepts at play here (which can work together or isolation)
Labels:
Java,
Jni4Net,
O2Platform
IBM AppScan Source's and AppScan Standard's TreeViews running side-by-site in the same GUI
Using the technique described in Injecting a .NET REPL into an Unmanaged/C++ application (Notepad) I was able to create this PoC (below) where you can see both IBM AppScan Source (Java) and IBM AppScan Standard (.NET) TreeViews hosted inside a 3rd party C# based Form:
Labels:
IBM,
O2 Platform,
PDFs,
WinAPI
Using Jni4Net (Part 4) - Integrating AppScan with TeamMentor (first PoC)
Using the Jni4Net based Eclipse plugin shown in the Using Jni4Net (Part 3) - Writing and Invoking O2 Methods from Java and Eclipse post, I was able to create a PoC of showing TeamMentor Guidance when a particular security finding is selected (in AppScan Source):
Labels:
IBM,
Java,
Jni4Net,
O2 Platform,
PDFs
Injecting a .NET REPL into an Unmanaged/C++ application (Notepad)
Using Windows Messages (and some O2 Platform glue) I found a way to 'inject' a window (i.e. a windows control) from one process into another one.
Its is actually quite easy, the key is to use the user32.dll setParent API call to change the location (and rendering) of a particular control.
Here is an example of injecting an .NET TextBox into Notepad (on the left is the .NET Textbox and on the right is the Notepad's Textbox)
Its is actually quite easy, the key is to use the user32.dll setParent API call to change the location (and rendering) of a particular control.
Here is an example of injecting an .NET TextBox into Notepad (on the left is the .NET Textbox and on the right is the Notepad's Textbox)
Labels:
O2 Platform,
PDFs,
WinAPI
Using Jni4Net (Part 3) - Writing and Invoking O2 Methods from Java and Eclipse.pdf
After Using Jni4Net (Part 1) - To C# REPL a java process (ZAP Proxy) and Using Jni4Net (Part 2) - Controling OWASP ZAP remotely (via Java BeanShell REPL in .Net) the next step was to see if we could consume (and code) the .NET APIs from Java.
And again Jni4Net really worked!
Here is a .NET WinForms control, coded and executed from the (Eclipse written) Java code:
And again Jni4Net really worked!
Here is a .NET WinForms control, coded and executed from the (Eclipse written) Java code:
Labels:
Java,
Jni4Net,
O2 Platform,
PDFs
Using Jni4Net (Part 2) - Controling OWASP ZAP remotely (via Java BeanShell REPL in .Net)
Once I was able to Use Jni4Net (Part 1) - To C# REPL a java process (ZAP Proxy) I was able to use the ZAP BeanShell support to start controlling and manipulating ZAP's GUI from the .Net C# REPL.
Here is an example of adding a new 'Site' (i.e. a TreeNode) to the main ZAP 'Site's window (i.e. TreeView)
Here is an example of adding a new 'Site' (i.e. a TreeNode) to the main ZAP 'Site's window (i.e. TreeView)
Labels:
Java,
Jni4Net,
O2 Platform,
PDFs
Using Jni4Net (Part 1) - To C# REPL a java process (ZAP Proxy)
Last week I discovered the Jni4Net FOSS project which provides the foundation blocks to create a Java bridge to .Net (and vice-versa).
To try Jni4Net, and see if it was really possible to have .Net and Java code running on the same process (with the CLR and JVM being able to invoke each other's methods), I decided to see if I could connect the O2 Platform with the OWASP ZAP project (with both running on the same process)
My first step was to use the Injecting C# DLLs into Managed (C#) and Unmanaged (C++) processes O2 capabilities to inject an C# REPL into the ZAP process.
And here they are in action:
To try Jni4Net, and see if it was really possible to have .Net and Java code running on the same process (with the CLR and JVM being able to invoke each other's methods), I decided to see if I could connect the O2 Platform with the OWASP ZAP project (with both running on the same process)
My first step was to use the Injecting C# DLLs into Managed (C#) and Unmanaged (C++) processes O2 capabilities to inject an C# REPL into the ZAP process.
And here they are in action:
- the foreground window is the (CLR based) C# REPL
- the background window is the (JVM based) ZAP process.
Labels:
Java,
Jni4Net,
O2 Platform,
PDFs
Managing website's content via GitHub edits (which are auto-committed and push into AppHarbor)
Based on the test site created by TM Fork into stand-alone Sales and Marketing site , here is an example of how to can manage the content of that 'AppHarbor published site' using GitHub
Here is the workflow that is going to be shown below:
- Edit a file in a GitHub Repository (using GitHub's website edit interface)
- Save it (which GitHub will auto-create a Commit with the changes)
- The Commit will trigger a build request to AppHarbor
- AppHarbor will receive the request and do a Git Pull from GitHub
- Once the new code is pulled, AppHarbor will build it
- And if the build is successful, AppHarbor will deploy the built files into to a live server
Labels:
TeamMentor
Great O2 Platform Presentation from Michael (final draft)
Michael Hidalgo sent me a copy of his presentation called "The O2 Platform : Exploiting and Fixing Microsoft ASP.net MVC Vulnerabilities" that he is going to present on the 21st Nov 2012 at OWASP's Latam conference in Uruguay :)
Labels:
O2 Platform
TM Fork into stand-alone Sales and Marketing site
After Coming up with a name for TeamMentor's public site (which resulted in the getsecure name being chosen) it was time to create that site.
After spending some time refactoring TeamMentor's (TM) main code-based (to only use the needed bits) here is a stand-alone TM site which will hold the TM Sales and Marketing pages.
If you have a couple cycles, please take it for a test drive (and try not to break it too much since the SI guys are also looking at it at the moment (that said if you break it, I can fix it with a simple git push :) ))
This is what it looks like (with a design based on ThemeForest AirStream):
And here are the details:
After spending some time refactoring TeamMentor's (TM) main code-based (to only use the needed bits) here is a stand-alone TM site which will hold the TM Sales and Marketing pages.
If you have a couple cycles, please take it for a test drive (and try not to break it too much since the SI guys are also looking at it at the moment (that said if you break it, I can fix it with a simple git push :) ))
This is what it looks like (with a design based on ThemeForest AirStream):
And here are the details:
- The live QA site at: https://getsecure.apphb.com (hosted at AppHarbor)
- by default the / root will redirect to the https://getsecure.apphb.com/xml/Eval page
- also available is the https://getsecure.apphb.com/notepad/Customer page
- The git hub repository is: https://github.com/TMClients/Site_getsecure.teammentor.net
- You can edit the content online using:
- http://getsecure.apphb.com/notepad/Eval
- http://getsecure.apphb.com/notepad/Customer
- login with
- admin : !!tmbeta
- You can run this site locally by downloading the zip from here (or cloning) and
- unzipping the files to a local folder (which can be a USB stick)
- executing the _LocalWebServer/start TeamMentor.bat which will start Cassini locally on http://127.0.0.1/12150
- This is now an example of a real fork of TM's engine
- All content (apart from the youtube videos) is served from this site (I moved the Animation.html files that where coming from SI.com into getsecure.tm)
- The TM engine is consumed by its compiled dlls (which will retrieved from NuGet (once 3.2.4 is released), so the backend code is not there (i.e. this site uses the latest released version of TM)
- 90% of TM's website Html/Javascript/Images content is NOT there (I only added the required files so that it is possible to Login and Edit the pages (using the Notepad editor))
- Nice case-study on how to create stand-alone websites based on TM's engine and APIs
- The AppHarbor is synchronised with GitHub, which means that there will be a new deployment on every commit to the https://github.com/TMClients/Site_getsecure.teammentor.net repository
Important note: although the content changes will be shown on the site (the ones done via the 'notepad' editor) this data will be lost on every new publish.
There are two ways to make persistent changes:
- get a local clone of the Site_getsecure.teammentor.net, change the content locally, commit those changes locally, and do a push to GitHub (which will trigger a publish to AppHarbor)
- edit the desired file on GitHub's web edit interface (for example the Eval page or the Customer page), which when saved, GitHub will auto-create a Commit with the changes (which will trigger a publish to AppHarbor).
Let me know how it goes, and again, please don't break it too much :)
Labels:
TeamMentor
Friday, 16 November 2012
Lovely 'post help' email from Wikipedia
After 'helping' Wikipedia (see Improved Wikipedia funding page... for details) I received a really nice 'Thank you from the Wikimedia Foundation' email from Sue
And since she asked so nicely for me to share her words, here they are verbatim:
--------------------------------------------------------------------------------------------------
Dear dinis,
Thank you for donating to the Wikimedia Foundation. You are wonderful!
It's easy to ignore our fundraising banners, and I'm really glad you didn't. This is how Wikipedia pays its bills --- people like you giving us money, so we can keep the site freely available for everyone around the world.
People tell me they donate to Wikipedia because they find it useful, and they trust it because even though it's not perfect, they know it's written for them. Wikipedia isn’t meant to advance somebody's PR agenda or push a particular ideology, or to persuade you to believe something that's not true. We aim to tell the truth, and we can do that because of you. The fact that you fund the site keeps us independent and able to deliver what you need and want from Wikipedia. Exactly as it should be.
You should know: your donation isn’t just covering your own costs. The average donor is paying for his or her own use of Wikipedia, plus the costs of hundreds of other people. Your donation keeps Wikipedia available for an ambitious kid in Bangalore who’s teaching herself computer programming. A middle-aged homemaker in Vienna who’s just been diagnosed with Parkinson’s disease. A novelist researching 1850s Britain. A 10-year-old in San Salvador who’s just discovered Carl Sagan.
On behalf of those people, and the half-billion other readers of Wikipedia and its sister sites and projects, I thank you for joining us in our effort to make the sum of all human knowledge available for everyone. Your donation makes the world a better place. Thank you.
Most people don't know Wikipedia's run by a non-profit. Please consider sharing this e-mail with a few of your friends to encourage them to donate too. And if you're interested, you should try adding some new information to Wikipedia. If you see a typo or other small mistake, please fix it, and if you find something missing, please add it. There are resources here that can help you get started. Don't worry about making a mistake: that's normal when people first start editing and if it happens, other Wikipedians will be happy to fix it for you.
I appreciate your trust in us, and I promise you we'll use your money well.
Thanks, Sue
--------------------------------------------------------------------------------------------------
This is how to do it, well done Wikipedia
Notice the nice touch (in bold) to encourage participation in creating Wikipedia content.
And since she asked so nicely for me to share her words, here they are verbatim:
--------------------------------------------------------------------------------------------------
Dear dinis,
Thank you for donating to the Wikimedia Foundation. You are wonderful!
It's easy to ignore our fundraising banners, and I'm really glad you didn't. This is how Wikipedia pays its bills --- people like you giving us money, so we can keep the site freely available for everyone around the world.
People tell me they donate to Wikipedia because they find it useful, and they trust it because even though it's not perfect, they know it's written for them. Wikipedia isn’t meant to advance somebody's PR agenda or push a particular ideology, or to persuade you to believe something that's not true. We aim to tell the truth, and we can do that because of you. The fact that you fund the site keeps us independent and able to deliver what you need and want from Wikipedia. Exactly as it should be.
You should know: your donation isn’t just covering your own costs. The average donor is paying for his or her own use of Wikipedia, plus the costs of hundreds of other people. Your donation keeps Wikipedia available for an ambitious kid in Bangalore who’s teaching herself computer programming. A middle-aged homemaker in Vienna who’s just been diagnosed with Parkinson’s disease. A novelist researching 1850s Britain. A 10-year-old in San Salvador who’s just discovered Carl Sagan.
On behalf of those people, and the half-billion other readers of Wikipedia and its sister sites and projects, I thank you for joining us in our effort to make the sum of all human knowledge available for everyone. Your donation makes the world a better place. Thank you.
Most people don't know Wikipedia's run by a non-profit. Please consider sharing this e-mail with a few of your friends to encourage them to donate too. And if you're interested, you should try adding some new information to Wikipedia. If you see a typo or other small mistake, please fix it, and if you find something missing, please add it. There are resources here that can help you get started. Don't worry about making a mistake: that's normal when people first start editing and if it happens, other Wikipedians will be happy to fix it for you.
I appreciate your trust in us, and I promise you we'll use your money well.
Thanks, Sue
--------------------------------------------------------------------------------------------------
This is how to do it, well done Wikipedia
Notice the nice touch (in bold) to encourage participation in creating Wikipedia content.
Labels:
Philosophy
Improved Wikipedia funding page, why OWASP needs something similar, and who buys OWASP Corporate Memberships
Just went to Wikipedia and saw this:
Labels:
OWASP
Coming up with a name for TeamMentor's public site
I'm moving the current TM Eval and Customer pages into its own server, and I was struggling to come up with a name that worked (in the xxxxxx.teammentor.net DNS name format).
So I jumped on Skype and after a couple minutes bouncing some names with Roman (who I have no idea where in the world he is) and we come up with: novulns.teammentor.net
as in:
So I jumped on Skype and after a couple minutes bouncing some names with Roman (who I have no idea where in the world he is) and we come up with: novulns.teammentor.net
as in:
- http://novulns.teammentor.net/Eval
- http://novulns.teammentor.net/Customer
- http://novulns.teammentor.net/Buy
- http://novulns.teammentor.net/Support
What do you think? does it work?
For reference here are the other names we come up with (by order of appearance):
- sales.teammentor.net
- marketing.teamentor.net
- live.teammentor.net
- customerzone.teammentor.net
- get.teammentor.net
- clientportal.teammentor.net
- clietsite.teammentor.net
- xss.teammentor.net
- bazzar.teammentor.net
- sqli.teammentor.net
- stopxss.teammentor.net
- getsecure.teammentor.net
- novulns.teammentor.net
Note how looking at this list, it's possible to see the chain-of-ideas that lead us to the last one (which just clicked for us)
Labels:
TeamMentor
Monday, 12 November 2012
Util - Java Decompiler (JAD based) v1.0.exe
If you want to take a quick look at the Java code inside a Jar file, here is a simple Java/Jar Decompiler (based on the JAD tool)
You can download the tool from: Util - Java Decompiler (JAD based) v1.0.exe (stand-alone O2 Platform script)
You can download the tool from: Util - Java Decompiler (JAD based) v1.0.exe (stand-alone O2 Platform script)
Labels:
Java,
O2 Platform Tool
Friday, 9 November 2012
AppScan Source Findings in Ozasmt files (and O2 tools to View, Filter, Join, Stitch and Script them)
If you are using AppScan Source (previously called OunceLabs) you will find these O2 Tools really useful:
- Util - Simple Findings Viewer v1.1.exe (4.8Mb)
- Util - Simple Findings Viewer (with code viewer) v1.1.exe (4.8Mb)
- Util - Filter Findings by Source and Sink (RegEx) v1.1exe (4.8Mb)
- PoC - Join Traces (on Attributes) - very basic version v1.0.exe (4.8Mb)
Labels:
IBM,
O2 Platform Tool,
OunceLabs
O2 tools to view and script J2EE, Struts and Tiles xml config files
If you are reviewing Java/J2EE applications, here are a number of mini O2 tools that will help you to understand what is going on:
- Util - View Struts Mappings v.1.0.exe (4.7Mb)
- Util - View struts-config.xml mappings v1.0.exe (817kb)
- Util - View tiles-def.xml mappings v1.0.exe (816kb)
- Util - View validation.xml mappings v1.0.exe (817kb)
- Util - View Web.Xml mappings v1.0.exe (817kb)
Labels:
Java,
O2 Platform Tool
Subscribe to:
Posts (Atom)






