Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mirc and a VPS Proxy using Netcat
#1
Hi IRC nerds

I was fooling around with netcat and found a cool way to make a Proxy using a VPS.

Naturally Mirc itself has a Proxy option already using Http and Socks but this could be interesting for people.

So we have Mirc on a Windows System and a Linux VPS.

I made this connection completely automated and will describe the way it works.

The VPS has IP of say 33.44.55.66 for a hypothetical example.

So in Mirc Remotes you put,

ON *:START:{

server -m 33.44.55.66:5555
/run C:\server.bat

}

Now as you can see we have port 5555 not 6667 etc. this is for the netcat listener. The server.bat file is the automated file which starts the netcat listener on the VPS using ssh.

So lets start with the VPS and the netcat listener.

Ssh to your vps and login to root.

make sure you are in root@vps:/home/user

Now type

mknod pipe p

this creates a pipe

Then type

nano chat.sh

Enter this into your .sh file

#!/bin/bash

nc -l -p 5555 0<pipe | tee -a in.dump | nc 158.69.192.190 6667 | tee -a out.dump 1>pipe

Save file

To run the file type

bash chat.sh

So that creates a pipe that connects the netcat listener on port 5555 and the IRC server.

So when you START mirc it will connect to your VPS on 5555 which pipes to the IRC server.

It is just simple Socket connections.

To automate this is a little trickier which is the server.bat file

You will need to first install PuTTy in C:\putty.exe

This is how you ssh to your VPS and run the chat.sh script automatically.

Open notepad and type

START putty.exe -ssh user@33.44.55.66 ^-pw password ^-m chat.txt

save as server.bat in C:\server.bat

the ^ is to escape the -pw and -m commands

the chat.txt file gets executed which executes the chat.sh script on your VPS

In notepad in a new file type

su
password
bash chat.sh

save as chat.txt in C:\chat.txt

the password is your root password on your VPS

If everything works you will run Mirc.exe and it will open a server to 33.44.55.66:5555
run the server.bat which ssh's to your VPS and runs the chat.sh script
and Mirc will connect to your VPS and to IRC automatically.

Thx
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  secure query for mirc wildcard 2 2,997 20-03-2019, 05:37 AM
Last Post: immortal
  mIRC 7.46 [Aug 1st, 2016] Keith 0 2,098 10-08-2016, 02:52 PM
Last Post: Keith
  mIRC (Version 7.35) Keith 1 3,089 31-05-2016, 12:04 PM
Last Post: immortal
  mIRC (Version: 7.43) Keith 4 5,938 28-05-2016, 09:30 AM
Last Post: Manati
  Vlc addons for mIRC DrAgOnHeArT 0 2,686 27-05-2016, 02:21 PM
Last Post: DrAgOnHeArT
  Change your color font on mIRC Omar 10 18,058 29-03-2016, 03:14 PM
Last Post: pollaris
  Translator any language for Mirc Script IrCQ-Net 4 8,107 23-10-2014, 03:13 PM
Last Post: Omar
  mIRC for Mobile Phones Omar 3 6,133 09-12-2013, 10:16 AM
Last Post: Omar
  mIRC with other languages Omar 1 3,406 11-04-2012, 01:40 PM
Last Post: WildCat
  Getting Started with mIRC Omar 0 3,382 05-04-2012, 06:23 PM
Last Post: Omar

Forum Jump:


Users browsing this thread: 1 Guest(s)