Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
How to close connections from command prompt?

 
Post new topic   Reply to topic Printable version
 View previous topic  Apache VHost config Post :: Post Security Software  View next topic  
Author Message
K'
You can win any war if you start a year early


Gender:Gender:Male
Joined: Jul 13 2006
Posts: 271
Location: Southtown
Offline

PostPosted: Tue Sep 26, 2006 12:25 pm   Post maybe stupid    Post subject: How to close connections from command prompt? Reply to topic Reply with quote

It's boggling the hell out of me.
So I can netstat to fish for TCP or UDP connex.
But how do I go about wiping them out?


netsh?
Back to top
View users profile Send private message Add User to Ignore List
K'
You can win any war if you start a year early


Gender:Gender:Male
Joined: Jul 13 2006
Posts: 271
Location: Southtown
Offline

PostPosted: Tue Sep 26, 2006 12:57 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

OMFG YOU CAN"T!
WTF IS WRONG WITH OS MAKERS?
I've stirred a dozen people and they say you can't do it from command prompt.
THAT"S JUST SO DAMN !@#$%
Back to top
View users profile Send private message Add User to Ignore List
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:37
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Tue Sep 26, 2006 2:32 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

 You should try messing for a bit with the netsh command. It might be possible to just turn the firewall off and reject/close connections based on ports/proto.

I'm not sure if this would work, though. 


Wouldn't it be possible to use a sniffing library like winpcap to capture a stream and just return a connection error to close the connection?

I'm not sure, I have no clue really.

...I've asked Google for a bunch of pages, and I looked through Sysinternals.

Sysinternals shows that TCPView can actually kill TCP connections, but not through commandline, and the source of that project isn't available.

After Googling some more I found that SetTcpEntry could get you to kill a connection.

Here are some (hopefully) useful resources:

Enetstat (The Code Project) <-- This entry might be useful to you.
SetTcpEntry (Windows SDK)

This is all for TCP it seems, I guess that's because UDP isn't really a "connection".

Oh right before posting I saw you already got using netsh as an idea.
Back to top
View users profile Send private message Add User to Ignore List
K'
You can win any war if you start a year early


Gender:Gender:Male
Joined: Jul 13 2006
Posts: 271
Location: Southtown
Offline

PostPosted: Wed Sep 27, 2006 6:31 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

Well, thing is, I wanted a native command prompt batch.
I can do it just fine via any third party app, tool, firewall, whatever.
There are even command line add-on plugs/apps that can allow me to kill connections.
But I wanted something that's native.

Seems that, essentially, both unix and windows fail at that.

I'm most disappointed.
After all, it's such a trivial thing in our modern daily reality.
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Trash Talk All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 10 page(s) served in previous 5 minutes.

phpBB Created this page in 0.614141 seconds : 29 queries executed (91.9%): GZIP compression disabled