WG: [OWASP-WEBSCARAB] ColumnDataModel

Breitbach, Thomas Thomas.Breitbach at t-mobile.de
Wed Mar 9 06:50:14 EST 2005


Hi,

Rogan, thanks for the detailed explanation on this. I'll try myself, when I
have some days off next week.

Two general questions to all on the list:

- Using the newest version 2005-0222-2220 if am facing errors during session
id analysis.
A session id here in the cookie (e.g.
PHPSESSID=1d69ec9d6617d91ef3ce5c73142d32e8) is not collected, so that I can
see it in the scrollbar of the analysis section. This worked before  ...
Anybody else facing this problem?

- in another case the cookie is more complicated
JSESSIONID=Hello12345.12345643413412414EndHello
  The real session id starts after the "dot" and ends before "EndHello".
  Any idea how I can analyze this directly without scripting?
  As far as I understand the regex in session-id->collection this only
applies to the text
  An example for this would be helpful.

Thanks
Thomas




> -----Ursprüngliche Nachricht-----
>Von: Rogan Dawes [mailto:discard at dawes.za.net] 
>Gesendet: Montag, 7. März 2005 18:50
>An: OWASP WebScarab
>Betreff: [OWASP-WEBSCARAB] ColumnDataModel


>Here is a snippet from the existing SummaryTableModel showing how easy 
>it is to add your own columns to the table:

>ColumnDataModel cdm = new ColumnDataModel() {
     public Object getValue(Object key) {
        if (_model == null) return null;
        ConversationID id = (ConversationID) key;
        return _model.getConversationProperty(id, "METHOD");
     }
     public String getColumnName() { return "Method"; }
     public Class getColumnClass() { return String.class; }
>};
>_conversationTableModel.addColumn(cdm);

>That shows the METHOD that was used in the request.

>You would probably want to do something like:

>String ts = _model.getConversationProperty(id, "TIMESTAMP"); long time =
Long.parseLong(ts); return new Date(time);

>and make getColumnClass() return Date.class

>Pretty simple, really.

>Rogan
-- 
Rogan Dawes

*ALL* messages to discard at dawes.za.net will be dropped, and added to my
blacklist. Please respond to "lists AT dawes DOT za DOT net"


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Owasp-webscarab mailing list Owasp-webscarab at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owasp-webscarab




More information about the Owasp-webscarab mailing list