DGRAM,SURE,CODED,W95,W98,W2000,WOULD,HAPPY,HE
Quick Search for:  in language:    
DGRAM,SURE,CODED,W95,W98,W2000,WOULD,HAPPY,HE
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
C/ C++ Stats

 Code: 488,676 lines
 Jobs: 1,067 postings

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for C/ C++.
Asm in C++
By _AuC_ on 10/28


Non Fibanocci Generator
By Rishabh M on 10/28


GDI+ create, draw and save images
By __kreischweide on 10/27


Calculator v02 by: chris eckhard
By chris ec on 10/27


wonderful analog clock
By vaibhav shintre on 10/27


Absolute Security - Hidden Diskette
By Sharp Avenger on 10/27


Simple FTP Passive Upload Class (PASV PUT)
By __kreischweide on 10/27


String component counter
By Rishabh M on 10/27


Click here to see a screenshot of this code!MFC Othello v1.21
By Lam Wai Hang on 10/26

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

Connect to Remote Computers

Print
Email
 
winzip icon
Submitted on: 8/28/2000 10:01:15 PM
By: Trapper McFerron 
Level: Intermediate
User Rating: By 16 Users
Compatibility:Microsoft Visual C++

Users have accessed this code 21165 times.
 
(About the author)
 
     These are 3 projects all related. The purpose is to connect to a remote machine, via the internet, and gain a limited amount of control. I have submitted this code because it was an excellent experiment for me using Windows Sockets and after i was finished, i figured someone else might find it fun/helpful. It was by no means written as a tutorial - there is definetly room for improvement and can be quite confusing at times. However, I wanted to put it out here rather than have it sit on my machine. Being a learning experience for me, the code is not prefect. It uses DGRAM sockets, so their is no gusrantee of packets making succesfully, although there is some checking and I have had no lost packets as of yet. Also BE SURE TO CHANGE THE CODED IP ADDRESSES. right now they lead to your local machine, but you must change them to the ACTUAL IP address you wish the programs to connect to. There is quite a bit you should know here: There are 3 seperate projects... Secret - runs silently on the computer you wish to connect to. Sender - sends commands over the internet to the Secret program. Server - runs to relay an ip address to either the Secret or the Sender. Detailed explanation as follows: The "Secret" program runs as soon as it is double clicked. If it is named "me.jpg.exe" it will copy itself to the startup folder (if running W95 or W98). From then on it continues to run whenever the computer is started up. It employs multiple threads, - one thread is constantly sending to the "server" until the server receives it's IP address. This way you will know the IP address (providing the server is running) even if it is dynamic. The other 2 threads are waiting for commands from the Sender program. The "Sender" program asks you to connect in one of 3 ways - a direct connect, where you type in the IP address of the machine. The second option is to retrieve the remote IP address from the server, in case it is dynamic - and the third to connect to someone behind a proxy server. In reality, if you choose to connect to someone behind a proxy server, the Server program takes your IP address and sends it to the Secret program which then establishes a connection to you...so the client behind the proxy server is actually connecting to you. The Server program just listens to for IP connections from the Secret and from the Sender. And it carries out the commands it receives, which pretty much consist of storing and relaying IP addressses. What can you do with this??? the options are limitless. Right now you can tell the Secret program to do the following commands... Delete files, Shutdown Computer, Reboot Computer, Flash an bitmap up on their machine for a specified amount of time, Get the captions of internet sites the user might be surfing, pop up message boxes with the *, ! or ? icons. The PROTOCOL.H consists of commands to Delete, Message, etc. Comm.h / Comm.cpp is a superclass which is the same throughout the programs - it handles the basic socket communications. **final notes: I have tried to get W2000 and NT to shut down, but right now i can't seem to get the security permissions to work - i'm sure with a little finessing you will be able to get it. I WOULD BE HAPPY TO HELP IF THE CODE HAS BEEN WRITTEN TOO CONFUSING because it was just written for my personal testing the commenting is somewhat lacking please email me trapzz@hotmail.com if you have any questions.
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
9/4/2000 6:26:59 PM:Steve
i have voted 2 times to keep this one 
at the top...  heh, wait till everyone 
see's Paradox v0.89a...  they'll love 
it and make it #1 for this year...  heh 
  - Steve
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/13/2000 6:44:36 PM:Scott Velasquez
I must say that this is one of the most 
involved C++ networking application 
demos that I've come across on the net. 
 And it works great!  Good job.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/21/2000 12:46:34 AM:Mehdi Hanbali
Hi, glad to say i'm a winner this month 
to. Hey guys, i dont think he is trying 
to make a trojan. this guy actually 
knows what he's doing. he has it 
connect to a remote computer to 
manipulate it, not to destroy or steal 
information. good coding. nice dos 
console idea. and TheCyke, dont ask any 
questions like that or you will be 
reported.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/22/2001 10:56:10 AM:Cyprus
Hey, does this only connect over a 
network, or does it work across the 
web? Could you make something ilke that 
that works across the Net? btw, This is 
the best program of its kind that i've 
ever seen!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/10/2002 4:44:00 PM:Mitko Todorov
Great Program.... Ill be sure to design 
more commands and then post it here 
again
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/27/2002 6:46:31 PM:Hugh
I will check out your code and get back 
to you with a comment
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/13/2002 5:50:12 PM:Reg
Interesting ! I would be thrilled if 
the program could update Oracle 
database columns as well as retrieve 
data from an Oracle database ! I'm 
working on something like that. Good 
job !
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/29/2002 8:53:29 AM:Junaid
gr8 work...but if the server is behind 
a proxy server and the sender tries to 
connect
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/29/2002 8:57:21 AM:Junaid
How do we make a connection b/w 2 
computers behind proxy
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/11/2002 10:53:45 PM:
hi, i tried email to u, but cannot, can 
u email me an email which i can reach 
u, coz i need some help, my email, 
takaya79@yahoo.com
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/3/2002 7:53:55 PM:INPUT control
I would like to try your software. 
Please, can you send me a compiled and 
executable copy? I pay you the price 
that you ask me. I ask you this because 
I have published a request in 
planet-source-code.com, my nominative 
is INPUT control and I looks for an ADV 
Advanced Remote Control. If I try your 
software and it has the characteristics 
that I ask, I would like to ask to do 
you some changes for me.
Best 
regards
Giuseppe 
Rumiato
input@rumiato.it
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | C/ C++ Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.