Articles

Metasploit Framework Windows Tutorial
Remote Desktop Connection
Windows Processes That May Be Dangerous
How-To use NetCat a Tutorial
Common Linux Commands
Common Ports
Netcat Commands
HTTP Response Codes
War-Google Hack Terms
Wardriving
Avoiding Social Engineering and Phishing Attacks
Intrusion Detection on Linux
Linux Intrusion Detection
Penetration Testing Guide
Penetration Testing Tools
Social Engineering Fundamentals, Part I: Hacker Tactics
Social engineering (computer security)
The Psychology of Social Engineering

The Archives

General GSO
GovernmentSecurity.org News & Suggestions
In The News
Open Topic
General Security Information
Trash Can
Exploit & Vulnerability Mailing List Archives
Trial Member Forum
Product and Program Reviews GSO Tutorials
System Security
Windows Systems
Beginners Section
Linux & Unix Systems
File Downloads
Exploit Research & Discussion Trojan & Virus Errata
Networking Security / Firewall / IDS / VPN / Routers
System Hardening
E-Mail Security
Wifi Security
Trial Member Uploads
Upload discovered Trojans & Mal ware
GSO Programming Section
C , C++ , VC++
Visual Basic.NET
Perl /CGI
Java/Javascript
PHP/XML/ASP/HTML
Assembly + Other
The Cork Board
Network Security Consultant Directory
Network Security Jobs
The Archives
Encryption Information
General Network Security
Internet Anonymity
HTTP Protocol Security
Linux Security
MS IIS Information
Exploit Articles
Programming / Tool Design
GSO Software Projects
Public Downloads
Microsoft Security Questions and Papers

Full Version: Header Files
asher
any one has idea where i can find c or c++ header files
i found some sites like koder.com but i need some header files (like <sys/types.h>,<sys/socket.h>,<netinet/in.h>, <netdb.h>) i didn't find any where not in google and not in koder.com

if some one has a good library for header files please share it rolleyes.gif
wiNGCom
Are you trying to port an application which is linux/cygwin and it doesn't compile on your windows machine?

sys/types.h should be there though

otherwise search the header files on a linux distribution but i don't think it will work on a windows box. Only thing i was able to find was the getopt.h which is hidden in the msdn of vc6. you need to find the windows equivalent...

Edit: including the winsock library will provide you with alternatives for most of the functions in those header files, if not all.

CODE

#pragma comment(lib,"ws2_32.lib")
asher
QUOTE
Are you trying to port an application which is linux/cygwin and it doesn't compile on your windows machine?

tanq

yaa ..i think so..but i tried gcc compiler
i never worked with gcc compiler nad im new in programming...i tried to compile it with this command "gcc -o pro.c pro" i dont know if its right(is this right?? )!
but i got lot of errors

QUOTE
#pragma comment(lib,"ws2_32.lib")

i have to add this line in my code??
if yes what a bout pointers and main functhins? they conformity them selfs?
wiNGCom
well if you include this line in your code you will be able to use the winsock functions which will allow you to connect to sockets.

They are just a bunch of functions/ logic to allow network connectivity and basicly they do the same as the header files you were searching for. Only the header files just contain the prototypes and link to the programs whereas the library is the whole bunch

I am currently learning about it myself. But this is not stuff you can learn from a post :s Requires alot of reading... i know, i'm still busy doing that wink.gif But i know several other programming languages like vb, C#, vb.net and even COBOL lol smile.gif

I never use gcc on windows... Either start compiling on linux or use something like visual studio on windows. It has a wealth of information on programming called msdn library. If you're new to programming, me personally would not start with C or C++ because its much harder. I think you will be able to connect to irc quicker using C# and .NET framework and if you got that one working then move to C++.

buy a book

get some sample projects from www.codeproject.com ... and start compiling on the right platform... the last thing you want to do as a beginning programmer is compiling complex programs on the wrong platform smile.gif you are making it hard on yourself.
asher
ya dude
i got u..u absolutely right..i want to raise a heavy weight ,lool

tanq for ur helping i going to learn c# ? but c# has the ability of c or c++ ?
can u introduce me a usefull and online c and c# book?
im learning from learning c in 21 days but ..i think there is abetter book!!
wiNGCom
nah, C/C++ lets you do more... but those things you can do more in C/C++ are the kind of things you shouldn't be focusing on as a beginner. Well, thats my opinion of course... Some people will say start using C/C++ directly and if you are a very smart person you should because if you know C/C++ the other languages will be piece of cake.

Keep in mind that C# uses the .NET Framework so if you're gonna be running software on various pc's, those clients will need the .NET framework. But its just easier... no trouble with char arrays, pointers, pragma this and that, prototypes, import libraries etc. and MUCH more help for absolute beginners -> for example the socketconnectivity you are searching for is integrated in the Framework which will make it alot easier to use

But thats just it: its easier to use... C++ is more powerfull but much more difficult especially if you want to do it well. You could write a bot or whatever in C#. But your bot will only run on pc's who got the .NET Framework. On the other side: you can not write a kernel rootkit in C# so C really is more powerfull

its really up to you... if you are already learning C then maybe you should stick to it but start with small programs. As for the books: no, i can't... i got some books at home, but those aren't electronic books. I will lookup their titles tonight when I get home
foilo
Hi,

some header files you can find there:

http://www.koders.com/c/fidA2D2DA3B18D4EB2...9E7A1F1E8E.aspx

hf
asher
QUOTE
nah, C/C++ lets you do more... but those things you can do more in C/C++ are the kind of things you shouldn't be focusing on as a beginner. Well, thats my opinion of course... Some people will say start using C/C++ directly and if you are a very smart person you should because if you know C/C++ the other languages will be piece of cake.

Keep in mind that C# uses the .NET Framework so if you're gonna be running software on various pc's, those clients will need the .NET framework. But its just easier... no trouble with char arrays, pointers, pragma this and that, prototypes, import libraries etc. and MUCH more help for absolute beginners -> for example the socketconnectivity you are searching for is integrated in the Framework which will make it alot easier to use

But thats just it: its easier to use... C++ is more powerfull but much more difficult especially if you want to do it well. You could write a bot or whatever in C#. But your bot will only run on pc's who got the .NET Framework. On the other side: you can not write a kernel rootkit in C# so C really is more powerfull

its really up to you... if you are already learning C then maybe you should stick to it but start with small programs. As for the books: no, i can't... i got some books at home, but those aren't electronic books. I will lookup their titles tonight when I get home

tanq
so i think c# is so limited than c or c++
any way i buied a book about c# and im keeping to learn c from Learning c in 3 weeks and c# from this book...let see if i can sad.gif
btw.do u know any site like codeproject.com but for c language?
===========
tanq foilo.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2005 Invision Power Services, Inc.