Forcing An Application To Use A Single Port?
#1
Posted 08 February 2010 - 09:22 PM
I understand sockets and what theyre used for, but is there any way of funneling that process's request to use these ports into a single request to use a single specified port, so an exception can be made for that single port?
Cheers. ;)
#2
Posted 08 February 2010 - 11:35 PM
Theres a few reasons I can think of though:
either in the software they left out the port field so winsock is randomly assigning ports (If I remember right winsock would use a random port if not assigned one specifically when coded).
or theyre manually choosing a random port within that range, beats me why.
Sorry not much help.. :<
#4
Posted 09 February 2010 - 10:18 PM
It is compiled. I can probably get it, but im not sure theyd be happy about me sharing it online. And pissing anyone off in a company ive only been part of for a matter of days isnt exactly the best start. =P
I was just wondering if there was software that could act as a go between, between the application and the network, eg: it takes outgoing requests and funnels it through a specified port, and that port can be added as an exception in the firewall.
Although come to think of it, that would probably not be possible.
This post has been edited by port 21: 09 February 2010 - 10:20 PM
#5
Posted 10 February 2010 - 07:58 AM
Anyway, if the situation is as I think it is, you're looking for something like fpipe [1], you could use it as a simple proxy, but this is not really in compliance with any security policy I could think of (instead, I CAN think of quite a few admins who would rip your head of for this ^^).
You don't need to publish the source code here, as long at is available to you (or to a developer with your company). If it is using BSD sockets API, for example, they could bind() the socket to a specific source port before connect()-ing. I'll leave the API-specific details to your programmers, you get my point :-)
[1] http://www.foundston...ddesc/fpipe.htm
#6
Posted 10 February 2010 - 05:52 PM
Is there a way you could capture the packets after they get to the network but before they get to your computer and forward them to a port of your choosing? Kind of like being your own MiTM… Or is that just the most retarded thing anyone has ever said????
#8
Posted 10 February 2010 - 10:15 PM
The software would be going on just one users laptop, its not like its going to be rolled out across the company, so it should be okay.
Although for security's sake, task manager is disabled on the laptop so they cant fuck about with it, assuming the app runs in the background, if not some tweaking might have to take place, but its definately a start. Thanks memnoch :).
#10
Posted 11 February 2010 - 08:10 AM
Anonymous User, on 10 February 2010 - 10:39 PM, said:
No worries at all.
Turns out the user will be using wifi permanantly whilst working for the company, and the AP supports port forwarding and mapping, so i'll see if i can sort it out by going down that route first, then its fpipe :).
Thanks for everyones help. :)
This post has been edited by port 21: 11 February 2010 - 08:10 AM

Sign In
Register
Help


MultiQuote