Author Topic: how to access another computer on the same network as me?  (Read 2255 times)

0 Members and 1 Guest are viewing this topic.

Offline m1kesanders

  • Serf
  • *
  • Posts: 48
  • Cookies: -5
  • I'm sarcastic, somewhat new, and a grey hat
    • View Profile
how to access another computer on the same network as me?
« on: April 21, 2014, 09:47:55 am »
So basically I want to play a joke on my little brother and take control of his computer tonight just to mess with him, however I do want to make this a learning experience for me, do you know of any resource or if you can give me a tip on how to write a program in java that does this for me? thanks :)

Offline d4rkcat

  • Knight
  • **
  • Posts: 287
  • Cookies: 115
  • He who controls the past controls the future. He who controls the present controls the past.
    • View Profile
    • Scripts
Re: how to access another computer on the same network as me?
« Reply #1 on: April 21, 2014, 10:10:21 am »
msfconsole, i think it's in ruby but there is no point in re-inventing the wheel.
Jabber (OTR required): thed4rkcat@einfachjabber.de    Email (PGP required): thed4rkcat@yandex.com    PGP Key: here and here     Blog

<sofldan> not asking for anyone to hold my hand uber space shuttle door gunner guy.


Offline NHAS

  • Serf
  • *
  • Posts: 40
  • Cookies: 1
    • View Profile
Re: how to access another computer on the same network as me?
« Reply #2 on: April 21, 2014, 10:18:17 am »
It really depends, if you have access to his computer you could properly find a remote control java program on here...

If not then you should use msfconsole (as d4rkcat said) to try and break into his computer over the network. But be warned this properly wont work on fully patched operating systems.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: how to access another computer on the same network as me?
« Reply #3 on: April 21, 2014, 10:32:19 am »
One does not need fancy exploits to pull a prank on a computer on the same LAN. IMO netcat would work fine. You'll need to disable a firewall and probably turn off any AV's he has, or at least include netcat as an exception.
Netcat is a nice little tool and it can be set as a simple backdoor to listen for incoming connections, and when you connect it drops you a shell in which you can do pretty much anything, that is if you know how :D

http://netcat.sourceforge.net/
This might help, but you really don't need such a lengthy "tutorial" complete with images lol:

Code: [Select]
http://www.hacking-tutorial.com/hacking-tutorial/10-steps-to-use-netcat-as-a-backdoor-in-windows-7-system/#sthash.lwJNjCI8.dpbs

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: how to access another computer on the same network as me?
« Reply #4 on: April 21, 2014, 02:47:53 pm »
If you want to learn with Java, then google how to control the mouse pointer and send key strokes to the system. I don't do Java, but I know it is more than possible.

Hell, make a botnet where you can log into it via IRC or something and send it commands like to open the notepad and write random shit. Or to randomly put on caps lock or send random keystrokes or something. Learn how to do that stuff in Java and code something.

Some links:
http://stackoverflow.com/questions/10770205/how-to-send-keyboard-outputs

http://www.daniweb.com/software-development/java/threads/7710/how-to-run-external-.exe-programs-from-java

http://stackoverflow.com/questions/2750422/building-an-irc-bot-in-java
>>>import this
-----------------------------

Offline ThePH30N1X

  • Peasant
  • *
  • Posts: 50
  • Cookies: 18
  • Java Programmer
    • View Profile
Re: how to access another computer on the same network as me?
« Reply #5 on: April 21, 2014, 03:38:43 pm »
Like Kulverstukas said, just set up a netcat backdoor. Another good resource for this is http://www.offensive-security.com/metasploit-unleashed/Persistent_Netcat_Backdoor. This is for setting up the backdoor after getting a meterpreter session on the machine with the Metasploit framework.
« Last Edit: April 21, 2014, 03:38:54 pm by ThePH30N1X »

Offline Axon

  • VIP
  • King
  • *
  • Posts: 2047
  • Cookies: 319
    • View Profile
Re: how to access another computer on the same network as me?
« Reply #6 on: April 21, 2014, 08:11:28 pm »
Telnet FTW

Offline voodoo

  • Serf
  • *
  • Posts: 42
  • Cookies: 4
  • Try Harder
    • View Profile
    • Security Voodoo
Re: how to access another computer on the same network as me?
« Reply #7 on: April 30, 2014, 03:38:30 am »
If you wanted to do this in Java, you need to learn about Sockets and reading / writing to them.

On the other hand, if you have physical access to the machine and don't really care to learn about Sockets, you can use netcat / cryptcat.  Or if you want to tinker around with the metasploit framework and some social engineering trickery, you can try to trick him into downloading something malicious that looks legitimate (like a java update).  Or if he is running an un-patched OS, you can use nmap to check for certain CVEs and then try to exploit them.
« Last Edit: April 30, 2014, 03:41:04 am by voodoo »
keep it simple

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: how to access another computer on the same network as me?
« Reply #8 on: April 30, 2014, 08:27:07 am »
Windows RDP.
Under properties of "computer" you can enable remote access.
You just need to add another user and put him in the allow list.
You can than connect to it using "mstsc /v some.ip.addr.here"
« Last Edit: May 17, 2014, 04:20:02 pm by proxx »
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline M1lak0

  • Peasant
  • *
  • Posts: 129
  • Cookies: 10
    • View Profile
Re: how to access another computer on the same network as me?
« Reply #9 on: May 15, 2014, 10:11:22 am »
msfconsole i guess is the best way with some social engg. trick to ask your li'll brother too add this cool add-on in this browser or a pdf! ;)
"Security is just an illusion"

Offline ThePH30N1X

  • Peasant
  • *
  • Posts: 50
  • Cookies: 18
  • Java Programmer
    • View Profile
Re: how to access another computer on the same network as me?
« Reply #10 on: May 17, 2014, 02:48:41 pm »
Code: (java) [Select]
import java.hacking.lan.LANConnection;
import java.hacking.lan.LANProcess;

public class LanHack {
   
    String addr = "192.168.0.1"; //The IP Address to hack
   
    public static void main(String[] args) {
        LANConnection con = System.getLan().connect(addr);
        con.shutdown(); //Shutdown machine
        con.showMessage("Hacked"); //Shows a popup box
        LANProcess np = con.startProc("notepad.exe");
            np.getIO().write("You have been h4ck3d!");
        con.disconnect();
    }
}

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: how to access another computer on the same network as me?
« Reply #11 on: May 17, 2014, 04:51:35 pm »
Code: (java) [Select]
import java.hacking.lan.LANConnection;
import java.hacking.lan.LANProcess;

public class LanHack {
   
    String addr = "192.168.0.1"; //The IP Address to hack
   
    public static void main(String[] args) {
        LANConnection con = System.getLan().connect(addr);
        con.shutdown(); //Shutdown machine
        con.showMessage("Hacked"); //Shows a popup box
        LANProcess np = con.startProc("notepad.exe");
            np.getIO().write("You have been h4ck3d!");
        con.disconnect();
    }
}

lol, leet codes brah.
>>>import this
-----------------------------