| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		Polynomial Grandmaster Cheater
  Reputation: 5
  Joined: 17 Feb 2008 Posts: 524 Location: Inside the Intel CET shadow stack
  | 
		
			
				 Posted: Thu Apr 08, 2010 7:52 pm    Post subject: Compiling pwnat in Windows | 
				       | 
			 
			
				
  | 
			 
			
				I'm attempting to compile pwnat in Windows, but I'm running into trouble. The documentation says it's Cygwin compatible, and also that it can be compiled with VC++.
 
 
When I try to make it with nmake, I get this:
 
 	  | Code: | 	 		  c:\Program Files\Microsoft Visual Studio 9.0\VC>nmake /f C:\Users\Burningmace\Desktop\pwnat-0.3-beta\Makefile.Win32
 
 
Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
 
Copyright (C) Microsoft Corporation.  All rights reserved.
 
 
NMAKE : fatal error U1073: don't know how to make 'socket.c'
 
Stop.
 
 
c:\Program Files\Microsoft Visual Studio 9.0\VC> | 	  
 
 
When I try to make with MinGW, I get errors about sys/socket.h being missing. When I try to replace the references to it with winsock2.h, I get further errors.
 
 
Could someone give me a hand compiling this?
 _________________
 It's not fun unless every exploit mitigation is enabled.
 
Please do not reply to my posts with LLM-generated slop; I consider it to be an insult to my time.  | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Slugsnack Grandmaster Cheater Supreme
  Reputation: 71
  Joined: 24 Jan 2007 Posts: 1857
 
  | 
		
			
				 Posted: Thu Apr 08, 2010 8:14 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				sys/socket.h is a *nix header file. in windows you use winsock when programming sockets. you can not just change the references because although very similar, there are a few distinct differences, including function names. even changing all function names is unlikely to make it work though since the semantics and parameters for each corresponding function do not necessarily match
 
 
i can compile it for you on linux if you like but you would not be able to use it on windows
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Polynomial Grandmaster Cheater
  Reputation: 5
  Joined: 17 Feb 2008 Posts: 524 Location: Inside the Intel CET shadow stack
  | 
		
			
				 Posted: Fri Apr 09, 2010 10:06 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				I can compile it on Linux fine, I've got a Ubuntu VM running and I tried it already. Problem is I need this code to be running on Windows and have it as a stand-alone with zero non-standard dependancies.
 
 
At this rate, I might as well just take the functionality and port it to C# or something. Can't be too hard, right? (famous last words)
 
 
I'll give it a go later.
 _________________
 It's not fun unless every exploit mitigation is enabled.
 
Please do not reply to my posts with LLM-generated slop; I consider it to be an insult to my time.  | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Slugsnack Grandmaster Cheater Supreme
  Reputation: 71
  Joined: 24 Jan 2007 Posts: 1857
 
  | 
		
			
				 Posted: Fri Apr 09, 2010 10:11 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				| would be a lot easier to just port it to regular C using winsock sdk functions
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Polynomial Grandmaster Cheater
  Reputation: 5
  Joined: 17 Feb 2008 Posts: 524 Location: Inside the Intel CET shadow stack
  | 
		
			
				 Posted: Fri Apr 09, 2010 11:41 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				Not used them before, no idea how they work.
 _________________
 It's not fun unless every exploit mitigation is enabled.
 
Please do not reply to my posts with LLM-generated slop; I consider it to be an insult to my time.  | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		uglyface How do I cheat?
  Reputation: 0
  Joined: 09 May 2010 Posts: 1
 
  | 
		
			
				 Posted: Sun May 09, 2010 7:02 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				"pwnat" in Windows version.
 
(attachment) (rename extension to .zip - I can't upload zip in attachment)
 
Source code it's from:
 
 	  | Code: | 	 		  
 
... i cant post url :)
 
 | 	  
 
... I paste link in attachment url.ct3 - it's txt file.
 
 
I want only to help programmer.
	
  
	 
	
	
		
	 
	
		|  Description: | 
		
			
		 | 
		  Download | 
	 
	
		|  Filename: | 
		 url.ct3 | 
	 
	
		|  Filesize: | 
		 57 Bytes | 
	 
	
		|  Downloaded: | 
		 952 Time(s) | 
	 
	 
	 
	 
	
	
		
	 
	
		|  Description: | 
		
			
		 | 
		  Download | 
	 
	
		|  Filename: | 
		 pwnat.ct3 | 
	 
	
		|  Filesize: | 
		 94.77 KB | 
	 
	
		|  Downloaded: | 
		 844 Time(s) | 
	 
	 
	 
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Jani Grandmaster Cheater
  Reputation: 2
  Joined: 29 Dec 2006 Posts: 804
 
  | 
		 | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		 |