Results 1 to 3 of 3
  1. #1
    khajalid is offline Member
    Join Date
    Sep 2008
    Posts
    31
    Rep Power
    0

    Default [ANSWERED] Can't Stop packet from transmitting [ANSWERED]

    I have used JPcap library for capturing the packet. But I can't block the packet from transmitting. How can I stop packet from reaching destination.

    Another problem is that int the Example given i get packet but unable to understand it is like this



    .......d......(.........y... .......P......>I>...5..&....M..R.......6$.w......k .
    ...........Y...............P...P............<..... .....D....!...zq...b....o... .
    .^....d....w....Z.....T....".L..I.....&...?%..h... ..9....8`#C'........).....(...
    .......i..eb.eD........@.F ...D.&.+l..0.a....H....;..t@.#................_... ..T
    ...............(...r...$...`....v../..|H.......:.t.}.................E....}.....
    .P....rL....l......\...................$.[..Q....?....G,......A....J..<d... ....
    ...4.....3......7....U.....D...`.........p... .....k...8.......v#d...((..,......
    .........#...3.....[...>N...N...YL.........I.................T...;.... ......._..
    ...l.........j.4.........u.`.........'.(.........2 .T....d........j.......o.H....
    .!...z.t....9......,............$....7.....K...... .......\.M ..B ......V........
    .....X...*.........b...c...........n..QDV.. \.q4.c.....s......\..........y...+..
    .B.........z.........6.......N.........L...A...... .....Z......|.......w........L
    ...b.....x.W..\......@.F... ......G..........d..........hb= X.9.. X.....0.......
    ....*..A...7.....<F....6.......1~......,....i..&.. .b..L.......i.9...&...........
    .#...#...........8C...........i....>t.K........... =..........$....u...........>.
    bd0..u.i.n..wt\.?y......U.. X................ X.....@...............g.;......7..
    ..a....f;......:Y.Do.......o{.pX...d.....E}..Y...r ....Q..O....x..DM..VC..>...)c.
    .pB..... $...............~....-.....h.......V.{.................8..........P..!.
    ............D.............,........ }...P............l....$...mw.IHw.>.|........
    H.....M..........+y9....<..5.ew..wt.....@.h....... 0......\...Dn..W......w...$v5O
    .........<(...R....1`....P@..&...C...r........0... ...Y.........#...#...#....W...



    Can anyone help me?
    Last edited by khajalid; 10-18-2008 at 12:16 PM.

  2. #2
    peter_lawrey is offline Member
    Join Date
    Mar 2008
    Posts
    10
    Rep Power
    0

    Default

    > I have used JPcap library for capturing the packet. But I can't block the packet from transmitting. How can I stop packet from reaching destination.
    Setup a firewall between the sender and the receiver or routing rules in your router where the only way from a packet to get from the sender tot he receiver is through your program. Then you can block packets by not sending the packet on.
    As you may surmise this is not trivial to do.
    To decode a packet you need to understand the protocols involved.
    The reason this is difficult to do is that making it any easier would make programs vulnerable to attack by hackers.
    Why do you want to do this because there is probably an easier way.

  3. #3
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    6

    Default

    Quote Originally Posted by khajalid View Post
    But I can't block the packet from transmitting. How can I stop packet from reaching destination.
    Don't send it.

    What do you really want to do?

Similar Threads

  1. problem when generating MIME header of a SOAP packet using SAAJ
    By kumar.jyotish@gmail.com in forum Advanced Java
    Replies: 1
    Last Post: 10-18-2010, 05:03 PM
  2. how to stop a thread
    By willemjav in forum Advanced Java
    Replies: 19
    Last Post: 09-10-2008, 07:11 AM
  3. fake ARP broadcast packet
    By junkredish in forum Networking
    Replies: 0
    Last Post: 09-06-2008, 06:01 PM
  4. Replies: 0
    Last Post: 05-12-2008, 10:41 PM
  5. Please help Transmitting Audio and Video using RTP
    By pedaramanareddy in forum New To Java
    Replies: 0
    Last Post: 01-03-2008, 02:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •