Wireshark-users: Re: [Wireshark-users] Access reassembled HTTP data with Lua
From: "Petter Strandmark" <p04pst@xxxxxxxxxxxxxx>
Date: Wed, 18 Jul 2007 14:17:33 +0200 (CEST)
Thanks, it maybe works now. I had to change it to "tvbrange =
http().range", though. When I try to print it, I get hexadecimal values,
which might be what I want when I have decoded them. :-)

/Petter

> Sorry for the confusion:
>    tvbrange = http.range
> should do.
>
>
> On 7/18/07, Petter Strandmark <p04pst@xxxxxxxxxxxxxx> wrote:
>> I had to replace "FieldExtractor" with "Field" to make it compile.
>>
>> I also get the error:
>>
>> "[string "test.lua"]:10: attempt to call method 'get_range' (a nil
>> value)"
>>
>> /Petter
>>
>> > do
>> >     local http = FieldExtractor.new("http")
>> >
>> >     -- ...
>> >
>> >     function listener.packet()
>> >        -- ...
>> >        local http_tvbrange =  http():get_range()
>> >     end
>> > end
>> >
>> > On 7/18/07, Petter Strandmark <p04pst@xxxxxxxxxxxxxx> wrote:
>> >> Hi,
>> >>
>> >> I have just started looking at Lua scripting in Wireshark. Within
>> >> wireshark, I can access the reassembled HTTP data sent from the web
>> >> server. This data is decompressed if it was compressed with gzip.
>> >>
>> >> How can I access this data from a Lua script?
>> >>
>> >> Best regards,
>> >> Petter Strandmark
>> >>
>> >> _______________________________________________
>> >> Wireshark-users mailing list
>> >> Wireshark-users@xxxxxxxxxxxxx
>> >> http://www.wireshark.org/mailman/listinfo/wireshark-users
>> >>
>> >
>> >
>> > --
>> > This information is top security. When you have read it, destroy
>> yourself.
>> > -- Marshall McLuhan
>> > _______________________________________________
>> > Wireshark-users mailing list
>> > Wireshark-users@xxxxxxxxxxxxx
>> > http://www.wireshark.org/mailman/listinfo/wireshark-users
>> >
>>
>>
>> _______________________________________________
>> Wireshark-users mailing list
>> Wireshark-users@xxxxxxxxxxxxx
>> http://www.wireshark.org/mailman/listinfo/wireshark-users
>>
>
>
> --
> This information is top security. When you have read it, destroy yourself.
> -- Marshall McLuhan
> _______________________________________________
> Wireshark-users mailing list
> Wireshark-users@xxxxxxxxxxxxx
> http://www.wireshark.org/mailman/listinfo/wireshark-users
>