Kill TCP Session in Linux 04-18-2012, 08:52 AM
#1
Hello friend , after some time i am again come with new thread. In this time, i am busy with my Project so sorry for wait. Today post topic based on killing TCP session in Linux. You can use this trick with any Linux Version OS , here i am use backtrack for showing you.
Step 1: First open your Linux Terminal , now i am going to install "ngrep" application for killing session. For install ngrep run below write command:
see below pic...
![[Image: a.PNG]](http://4.bp.blogspot.com/-Gk3xYh7_XG0/T4XXubmsdFI/AAAAAAAACn0/c66L7LhDLgI/s1600/a.PNG)
Because i have already install it, so it's done fast but your system take sometime.
Step 2: Now i have open my Facebook ID for show you my Facebook TCP Session works good and it's open good and in smooth way...
![[Image: b.PNG]](http://2.bp.blogspot.com/-WgGNmvbrXos/T4XXzkES9kI/AAAAAAAACn8/XYOwFyVqDx4/s1600/b.PNG)
Step 3: Now i am going to Kill TCP session of Facebook Website , so for kill session run below command.
See below pic for running command, now your Facebook TCP Session start killing.
![[Image: c.PNG]](http://2.bp.blogspot.com/-c0kGrJldbkI/T4XX383qGII/AAAAAAAACoE/y6KOu_V-izE/s1600/c.PNG)
Step 4: For check TCP Session Killing start or not ? , i am going to my FaceBook Profile Page which shown by me in step 2 and then click there Hackarde link , when i done it page start reload and reload end with message "The Connection was reset" which means your Linux Start Killing of Facebook TCP Session, see below pic for example...
![[Image: d.PNG]](http://2.bp.blogspot.com/-yOobGpS7P8k/T4XX5-kPOsI/AAAAAAAACoM/5_xD6v2NJ88/s1600/d.PNG)
Step 5: Now take one more example, here i am open my Site www.hackarde.com , see below pic...
![[Image: e.PNG]](http://3.bp.blogspot.com/-XBRsTcgZ1Qc/T4XX7nZJx1I/AAAAAAAACoU/D6pNYwfTqZ0/s1600/e.PNG)
My site open without any problem because i am only Kill FaceBook TCP Session , see below pic..
![[Image: f.PNG]](http://1.bp.blogspot.com/-LyeUFiYvlNo/T4XX9n0WF2I/AAAAAAAACoc/9Gwe8Sk0qeU/s1600/f.PNG)
Step 6: Now i am going to kill my website TCP session by run command,
See below pic...
![[Image: g.PNG]](http://1.bp.blogspot.com/-ps3XSE10B6k/T4XYAVFVL4I/AAAAAAAACok/zBn9TdfODUc/s1600/g.PNG)
Step 7: Now when i am again open my website then it's show message like old Facebook page, see below pic..
![[Image: h.PNG]](http://2.bp.blogspot.com/-C6BaMSx13EU/T4XYBiYj_JI/AAAAAAAACos/ABWxKQAQMGQ/s1600/h.PNG)
But Now my Facebook Profile again open...
![[Image: i.PNG]](http://1.bp.blogspot.com/-6Z5NOyDuRno/T4XYEj0WwFI/AAAAAAAACo0/N7byt2S9-Zs/s1600/i.PNG)
I hope u like my this post, Enjoy!!
http://www.hackarde.com/2012/04/kill-tcp...linux.html
Step 1: First open your Linux Terminal , now i am going to install "ngrep" application for killing session. For install ngrep run below write command:
Code:
sudo apt-get install -y ngrepsee below pic...
Spoiler:
Because i have already install it, so it's done fast but your system take sometime.
Step 2: Now i have open my Facebook ID for show you my Facebook TCP Session works good and it's open good and in smooth way...
Spoiler:
Step 3: Now i am going to Kill TCP session of Facebook Website , so for kill session run below command.
Code:
ngrep -q -d any 'facebook.com' -k 10See below pic for running command, now your Facebook TCP Session start killing.
Spoiler:
Step 4: For check TCP Session Killing start or not ? , i am going to my FaceBook Profile Page which shown by me in step 2 and then click there Hackarde link , when i done it page start reload and reload end with message "The Connection was reset" which means your Linux Start Killing of Facebook TCP Session, see below pic for example...
Spoiler:
Step 5: Now take one more example, here i am open my Site www.hackarde.com , see below pic...
Spoiler:
My site open without any problem because i am only Kill FaceBook TCP Session , see below pic..
Spoiler:
Step 6: Now i am going to kill my website TCP session by run command,
Code:
ngrep -q -d any 'hackarde.com' -k 10See below pic...
Spoiler:
Step 7: Now when i am again open my website then it's show message like old Facebook page, see below pic..
Spoiler:
But Now my Facebook Profile again open...
Spoiler:
I hope u like my this post, Enjoy!!
http://www.hackarde.com/2012/04/kill-tcp...linux.html
The HEAT is ON !!!!!!!!!!!!!!!
1010011001111010010010101
0110G10H10O101S010T10101
1010100010100100101001001


![[+]](https://sinister.li/images/modern/collapse_collapsed.png)
For the first time I know a good use of ngrep. I installed it but the hectic man pages were too much for me to understand :wacko: thanks for it bro
![[Image: Wfxdx.png]](http://i.imgur.com/Wfxdx.png)