oktober 2011 - Posts

If you are reading this post you must have seen my previous post on Ostinato. With this post I wanted to give you all a first hands on experience in capturing a packet with Wireshark, editing the payload and replying it.

We aren’t going to to anything nasty just go through the basic interface and play with a ping packet.

Step1: “Capture the traffic”

In the first faze we want to capture a basis packet we will modify later. We could start crafting a packet from the ground up but that could be a though and time consuming task.

What we will do is fire up wireshark and just start a ping to an internal server, capture the traffic and isolate one single icmp request saving it off to a pcap file.

1. start your wireshark and create a display filter for icmp to get rid of all the clutter.

image

2. start a dos box and ping your target system

image

image

that should give you 4 successful ping’s and 8 captured packets

3. isolate one single icmp request as this will be the basis of our crafting

an easy way of doing this in wireshark is just referencing the frame number using the syntax frame.number == <frame nr>

image

4. save only the displayed packet by clicking the radio button and give the pcap file an easy to remember name

image

Step2: “Edit the packet”

1. To do this you need to fire up your Ostinato

image

2. open up the port group and select your interface

image

3. right click the steam area and choose open streams

image

select your file and click open

4. accept the import option

image

5. if all you want to do is reply the packet you are ready, however we want to play wit the packet just a little this time so we right click the stream and goto edit stream

image

If you are familiar with network protocols this should all make sense to you and you will recognize a very structured buildup throughout the screens.

6. let’s go out to the protocol and choose the HEXDump area for now.

image

7. Here we see the hex data being sent over the wire to the server and recognize the typical alphabet, however we want to surprise the server and send it “Ostinato Rocks”. Of course in order to do this we need to translate the string to hex. There are a million website you can use for this, I used http://www.dolcevie.com/js/converter.html

image

Just cut/past the hex string into the hex area in ostinato

image

8. Now by just doing this your packet will not play as modifying the payload also means the checksum will be incorrect. So we need to go up one in the stack and in the ICMP tab uncheck the box to set the Checksum

image

9. we are just about ready but how much fun would one packet be? Let’s play it save and ensure we see this thing fly, so head out to the next tab stream control and in the number of packets let’s specify we want to send this packet not 1 time but 50 times

image

when you are done, press ok and in the home screen press the apply button

image

Step3: “Replay the modified packet”

Now we are ready to send you neatly crafted packet back onto the wire. To do this, in the statistics screen, click the interface you will be letting these 50 packets out on

image

fire up your wireshark on your server

image

and then press the little play icon

image

while this is running you should see the transmit state go to on and you should see frames sent increase

image

On the server side you should have received 50 ICMP request frames with the Ostinato Rocks text in the data area

image

Now just imagine what you can do with this tool next, and if you have not done so, have a look at the drone option that comes with Ostinato!

Enjoy

Tom

A very good colleague of mine from the UK (Adam S.) introduces me to Ostinato last week and I wanted to share this great and recent tool with you (released April 2011)

As many of you know I have been a great fan of wireshark, nmap, netcat and other alike network tools for many years however until now it has always been difficult to find that one great open source tool to create and transmit network packets. With Ostinato our search is over.

This tool literally embodies just about all you would expect from a packet crafting tool and does it with so much  easy and cross platform availability.

The goal of the builder of Ostinato is very simple and in his own word: “Ostinato aims to be "Wireshark in Reverse" and become complementary to Wireshark”image

With this tool you can:

- create any raw data packet and just fire it off on you network through one of you NIC’s

- capture a pcap file in wireshark, and reply it back on any NIC

- most of all, capture traffic with wireshark, edit the packet and replay it on any NIC

I don’t think I need to tell anyone ready my blog how much fun this can be on a network.

Want a copy of Ostinato for your self?

http://code.google.com/p/ostinato/

If you are at all MS security minded and have been following MS proxy, ISA, TMG, IAG and UAG for the better part of you life I bet you too had a small tear drop when I posted the horrible news back in MAY about TMG’s future but as always you need to look into the future and hope for light at the end of the tunnel.

There has been absolutely no official info flowing from MS both on the public side and on the MVP NDA side, that’s right, we don’t know anything more than you do at this time. And we all wonder what’s really happening with TMG and as TMG is part of UAG what’s happening with UAG?

Well for those of you that where lucky enough to go to build or for those of you that like my self where on holiday and watched the recaps of Build there might be a little light, at least for UAG lovers.

http://channel9.msdn.com/Events/BUILD/BUILD2011/SAC-668T

In this video you will see MS’s remote access for the hybrid cloud session on windows 8. Pay special attention to the interface at the end:

image

Where UAG use to be required for “easy” DA deployment you now get DA with some very nifty new stuff straight out of the windows server 8 box.

Good by UAG and welcome back RRAS? I guess you can almost call it that, however don’t forget UAG is much more than just a wizard for Direct Access. However who needs anything but DA in tomorrows world if DA can be on any device and require no internal changes? But then what world is perfect?

What about TMG I hear you say, well, ….. we still don’t know. And in some cases no news is good news, and in other cases no news is bad news.

In any case these are uncertain times and this is always a cause to take a step back, think and evaluate your situation on the edge.

Think about your short term, long term needs and your budgets. What are your real needs, threats and risks, and always remember TMG is still a damed good product!