Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Compiling pwnat in Windows

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
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

PostPosted: Thu Apr 08, 2010 7:52 pm    Post subject: Compiling pwnat in Windows Reply with quote

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
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Thu Apr 08, 2010 8:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Polynomial
Grandmaster Cheater
Reputation: 5

Joined: 17 Feb 2008
Posts: 524
Location: Inside the Intel CET shadow stack

PostPosted: Fri Apr 09, 2010 10:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Fri Apr 09, 2010 10:11 am    Post subject: Reply with quote

would be a lot easier to just port it to regular C using winsock sdk functions
Back to top
View user's profile Send private message
Polynomial
Grandmaster Cheater
Reputation: 5

Joined: 17 Feb 2008
Posts: 524
Location: Inside the Intel CET shadow stack

PostPosted: Fri Apr 09, 2010 11:41 am    Post subject: Reply with quote

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
View user's profile Send private message
uglyface
How do I cheat?
Reputation: 0

Joined: 09 May 2010
Posts: 1

PostPosted: Sun May 09, 2010 7:02 am    Post subject: Reply with quote

"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.



url.ct3
 Description:

Download
 Filename:  url.ct3
 Filesize:  57 Bytes
 Downloaded:  952 Time(s)


pwnat.ct3
 Description:

Download
 Filename:  pwnat.ct3
 Filesize:  94.77 KB
 Downloaded:  844 Time(s)

Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Sun May 09, 2010 7:41 am    Post subject: Reply with quote

uglyface wrote:
... I paste link in attachment url.ct3 - it's txt file.
http://www.sumitgupta.net/pwnat-windows-complied-version/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites