Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 639728 Details for
Bug 873924
Running unhide-tcp as a user reports inaccurate results
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to add euid test and scan appropriate port ranges based on root and non root accounts.
unhide-tcp.patch (text/plain), 1.08 KB, created by
jeviolle
on 2012-11-07 01:12:47 UTC
(
hide
)
Description:
Patch to add euid test and scan appropriate port ranges based on root and non root accounts.
Filename:
MIME Type:
Creator:
jeviolle
Created:
2012-11-07 01:12:47 UTC
Size:
1.08 KB
patch
obsolete
>--- unhide-20100201/unhide-tcp.c 2010-01-27 11:42:56.000000000 -0500 >+++ unhide-tcp.c 2012-11-06 19:18:31.526015617 -0500 >@@ -65,16 +65,24 @@ > > int main() { > >- > int i ; > int u ; >+ int startingPort; > > printf ("Unhide 20100201\n") ; > printf ("http://www.security-projects.com/?Unhide\n\n\n") ; > >+ >+ if ( geteuid() == 0 ) { >+ startingPort = 1; >+ } else { >+ printf("Only scanning ports 1024 and greater since you are not root\n\n"); >+ startingPort = 1024; >+ } >+ > printf ("Starting TCP checking\n\n") ; > >- for (i =1; i < 65535; i++) { >+ for (i = startingPort; i < 65535; i++) { > > int socket_desc; > struct sockaddr_in address; >@@ -103,7 +111,7 @@ > printf ("Starting UDP checking\n\n") ; > > >- for (u =1; u < 65535; u++) { >+ for (u = startingPort; u < 65535; u++) { > > int socket_desc; > struct sockaddr_in address; >@@ -115,6 +123,7 @@ > address.sin_addr.s_addr = INADDR_ANY; > address.sin_port = htons(u); > errno= 0 ; >+ > bind(socket_desc,(struct sockaddr *)&address,sizeof(address)); > > if ( errno != 0) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 873924
: 639728