This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org
Summit 2011/O2 Scripts
From OWASP
Here are a number of helpful scripts that use the APIs developed (in O2) to help with MediaWiiki edits
Create list of users with their edit page
//panel.clear();
var topPanel = panel.clear().add_Panel();
var textArea = topPanel.add_TextArea();
var useCache = true;
var summitApi = new API_OWASP_Summit_2011();
var attendeePages = summitApi.attendees_SeekingFunds(useCache);
var text = "";
foreach(var attendeePage in attendeePages)
{
var attendee = summitApi.getAttendee(attendeePage);
if (attendee.Name.valid())
{
var attendeeData = " * {0} \t\t http://www.owasp.org/index.php?title={1}&action=edit".format(attendee.Name,attendeePage.removeFirstChar());
text+=attendeeData.line();
}
}
textArea.set_Text(text);
return "done";
//O2File:API_OWASP_Summit_2011.cs
//O2Ref:O2_Misc_Microsoft_MPL_Libs.dll
Create email (or name) list of all attendess that need funds
//panel.clear();
var topPanel = panel.clear().add_Panel();
var textArea = topPanel.add_TextArea();
var useCache = true;
var summitApi = new API_OWASP_Summit_2011();
var attendeePages = summitApi.attendees_SeekingFunds(useCache);
var text = "";
foreach(var attendeePage in attendeePages)
{
var attendee = summitApi.getAttendee(attendeePage);
if (attendee.Name.valid() && attendee.Email.valid())
//text += "{0} , ".format(attendee.Email); // Creates list of emails
text += "{0} , ".format(attendee.Name); // Creates list of names
}
textArea.set_Text(text);
return "done";
//O2File:API_OWASP_Summit_2011.cs
//O2Ref:O2_Misc_Microsoft_MPL_Libs.dll