This forum is in archive mode. You will not be able to post new content.

Author Topic: Closing Sessions  (Read 1556 times)

0 Members and 9 Guests are viewing this topic.

V0R73X

  • Guest
Closing Sessions
« on: March 25, 2012, 10:34:10 AM »
Hi.
This is my first post in EvilZone.  8)
I just found this forum, and hope it's still active...
The link was in Easy_Binder, a program I got from one of my friends. It's written by bubzuru (if anyone knows him)
I was about to request for the source code of the program but apparently bubzuru is not active anymore!
Anyways here's my question:
when I do a netstat -n, I see a whole lot of connections to a whole lot of ports. Say I want to close one them (say I want to close the connection to port 4546). How can I do this?
Command, Code, anything will do.

Offline Axon

  • VIP
  • King
  • *
  • Posts: 2047
  • Cookies: 319
    • View Profile
Re: Closing Sessions
« Reply #1 on: March 25, 2012, 02:08:39 PM »
Hi.
This is my first post in EvilZone.  8)
I just found this forum, and hope it's still active...
The link was in Easy_Binder, a program I got from one of my friends. It's written by bubzuru (if anyone knows him)
I was about to request for the source code of the program but apparently bubzuru is not active anymore!
Anyways here's my question:
when I do a netstat -n, I see a whole lot of connections to a whole lot of ports. Say I want to close one them (say I want to close the connection to port 4546). How can I do this?
Command, Code, anything will do.


You can use task manager or any process monitoring software and close the connection associated with the port you want to close. However, be careful, some ports are used by important processes in you PC.

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: Closing Sessions
« Reply #2 on: March 25, 2012, 04:35:55 PM »
Hi.
This is my first post in EvilZone.  8)
I just found this forum, and hope it's still active...
The link was in Easy_Binder, a program I got from one of my friends. It's written by bubzuru (if anyone knows him)
I was about to request for the source code of the program but apparently bubzuru is not active anymore!
Anyways here's my question:
when I do a netstat -n, I see a whole lot of connections to a whole lot of ports. Say I want to close one them (say I want to close the connection to port 4546). How can I do this?
Command, Code, anything will do.

Hello V0R73X, tho this is an ok post. We usualy  post introduction posts in the introduction board and questions in other boards.

In response to your question, as far as i know you cannot do this with any inbuilt windows command. However, you can block traffic with ipsec policies.




You can use task manager or any process monitoring software and close the connection associated with the port you want to close. However, be careful, some ports are used by important processes in you PC.

He asked how, not f it was possible. Also you cannot do this with regular monitoring software, like task manager. Perhaps with process monitor.
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Z3R0

  • Guest
Re: Closing Sessions
« Reply #3 on: March 25, 2012, 04:45:11 PM »
if you do
Code: [Select]
netstat -an
You will get a list of programs listening on all ports + extra info. To the left you will see the service name along with it's process identifier (pid). To stop a "connection to a port" you will have to do the following command from cmd
Code: [Select]
taskkill /pid [pid number goes here]
You will need to run command prompt as administrator in order to do this.

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: Closing Sessions
« Reply #4 on: March 25, 2012, 06:01:51 PM »
if you do
Code: [Select]
netstat -an

You will get a list of programs listening on all ports + extra info. To the left you will see the service name along with it's process identifier (pid). To stop a "connection to a port" you will have to do the following command from cmd
Code: [Select]
taskkill /pid [pid number goes here]
You will need to run command prompt as administrator in order to do this.

That will not only kill the connection but the entire process using it.
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline ca0s

  • VIP
  • Sir
  • *
  • Posts: 432
  • Cookies: 53
    • View Profile
    • ka0labs #
Re: Closing Sessions
« Reply #5 on: March 25, 2012, 08:14:47 PM »
I tried to code it months ago, but I only got it to work with some connections. If you know C and want to try to finish it, look at the list of my posts.

V0R73X

  • Guest
Re: Closing Sessions
« Reply #6 on: March 25, 2012, 08:38:56 PM »
Hi & thanks for the tips.
I knew about killing the service associated with the port, but as "ande" said, this will kill the service which will result in closing all the other connections associated with it.
I tried manipulating windows firewall for this purpose:
Code: [Select]
  netsh firewall add portopening TCP 1054 "BLOCKER" DISABLE 
But when a connection is already established, firewall doesn't close the connection but merely rejects incoming connection requests.
There must be a Win API function for this....
« Last Edit: March 25, 2012, 08:40:07 PM by V0R73X »

V0R73X

  • Guest
Re: Closing Sessions
« Reply #7 on: March 25, 2012, 08:42:20 PM »
I tried to code it months ago, but I only got it to work with some connections. If you know C and want to try to finish it, look at the list of my posts.
can you please give me the links to those posts? I know C and I'll see if I can finish them...

Offline ca0s

  • VIP
  • Sir
  • *
  • Posts: 432
  • Cookies: 53
    • View Profile
    • ka0labs #
Re: Closing Sessions
« Reply #8 on: March 25, 2012, 09:01:31 PM »
can you please give me the links to those posts? I know C and I'll see if I can finish them...
I said you just had to search in my posts. Man, it was only at the 3rd page. But here it is: http://evilzone.org/general-discussion/close-tpcip-connections-with-remote-ip-and-port/msg13223/#msg13223

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.