mIRC Home    About    Download    Register    News    Help

Print Thread
Tricking IRC... #235738 08/01/12 06:23 PM
Joined: Jan 2012
Posts: 1
B
BradyBunchFanboy Offline OP
Mostly harmless
OP Offline
Mostly harmless
B
Joined: Jan 2012
Posts: 1
Is there a way to trick an IRC server into thinking you're logged on via their java applet, rather than mIRC?

I ask because a server I'm a member of, UKCB, doesn't allow its members to log-in through mIRC until their account is at least 14-days old. I'd like to avoid this waiting period, but I can't figure out how they know you're logged on through mIRC rather than their java applet.

Any ideas?

I don't know if this would be of any help, but here's the "view source" code for the java applet webpage:


Code:
<html>
	<head>
		<title>Chat</title>
		<script>
function mykeyhandler() {
    if (window.event && window.event.keyCode == 8) {
        // try to cancel the backspace
        window.event.cancelBubble = true;
        window.event.returnValue = false;
        return false;
    }
}

function right(e) {
	/*if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
		alert("Sorry, you do not have permission to right click.");
		return false;
	}*/

	return true;
}

function js_custom() {
	if (arguments[2]=='pprofile') {
		parent.frames["menuirc"].showpro(arguments[3]);
	}

	if (arguments[2]=='report') {
		rpt = prompt('Please state the nature of your report');
		document.pjirc.sendString("/gateway report " + arguments[4] + " " + arguments[3] + " " + rpt);
	}
}

function showwelcome() {
	document.pjirc.sendString("/echo Main rooms: 	12 #england (03120)12 #scotland (03101)12 #ireland (0354)12 #wales (0338)");
}

function js_kick(channel, nickName, reason, by) {
	if (nickName == "thereasonyoulogin") {
		alert("Room: " + channel + "\n\n" + reason);
	}
}

function js_report(source, message) {

}

function js_notice(source, nickname, action) {
	if (nickname=='Global') {
		alert("Global Message\n===============\n\n"+action);
	}
}

document.onkeydown = mykeyhandler;
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
		</script>
	</head>
	<body marginheight="4" marginwidth="4" topmargin="4" leftmargin="4" bgcolor="#6699CC">
		<script>
alert("Note to Unregistered Users\n==========================\n\nYou are an unregistered user. This enables you to observe the chat rooms for England, Wales, Scotland and Ireland. If you wish to participate in the conversation, be able to send/receive private messages and be able to access our vast selection of chat rooms, please complete the free registration process at http://www.ukchatterbox.com.");
		</script>
		<applet name="pjirc" codebase="http://venus.ukchatterbox.com/pjirc" code="IRCApplet.class" archive="irc-unsigned.jar,pixx.jar,jsEvents.jar" width="100%" height="100%" MAYSCRIPT>
			<param name="nick" value="thereasonyoulogin">
			<param name="alternatenick" value="thereasonyoulogin???">
			<param name="name" value="  -">
			<param name="userid" value="880052634">
			<param name="host" value="venus.ukchatterbox.com">
			<param name="port" value="7000">
			<param name="gui" value="pixx">
			<param name="useinfo" value="true">
			<param name="quitmessage" value="www.ukchatterbox.com">
			<param name="authorizedcommandlist" value="all-notice">
			<param name="allowdccchat" value="false">
			<param name="allowdccfile" value="false">

			<param name="plugin1" value="net.tjworld.jsEvents.jsEvents">
			<param name="jsevents:kick" value="true">
			<param name="jsevents:notice" value="true">
			<param name="jsevents:report" value="false">
			<param name="jsevents:custom" value="true">

			<param name="asl" value="true">
			<param name="aslmale" value="m">
			<param name="aslfemale" value="f">

			<param name="command1" value="/join #30Something">			<param name="command2" value="/echo --== 4Please note: In order to particpate in the chat you must REGISTER (for free).">			<param name="pixx:configurepopup" value="true">
			<param name="pixx:popupmenustring0_1" value="Start Private Chat">
			<param name="pixx:popupmenucommand0_1_1" value="/query %1">
			<param name="pixx:popupmenustring0_2" value="Preview Profile">
			<param name="pixx:popupmenucommand0_2_1" value="/jsevents pprofile %1">
			<param name="pixx:popupmenustring0_3" value="Full Profile (Hold CTRL)">
			<param name="pixx:popupmenucommand0_3_1" value="/url http://www.ukchatterbox.com/members/%1 NProfile">
			<param name="pixx:popupmenustring0_4" value="-">
			<param name="pixx:popupmenustring0_5" value="Private Chat: OFF">
			<param name="pixx:popupmenucommand0_5_1" value="/mode thereasonyoulogin -F+D">
			<param name="pixx:popupmenucommand0_5_2" value="/echo -- [ Your private chat is now turned off for this session and all private messages will be blocked.  To change your default settings, click the 'Edit Settings' link at the bottom left. ] --">
						<param name="pixx:popupmenustring0_6" value="Private Chat: FRIENDS">
			<param name="pixx:popupmenucommand0_6_1" value="/mode thereasonyoulogin -D+F">
			<param name="pixx:popupmenucommand0_6_2" value="/echo -- [ Your private chat is now set to friends only for this session and only users on your friends list may message you.  You can add friends by right-clicking names in the list of users in the chat room. To change your default settings, click the 'Edit Settings' link at the bottom left. ] --">
			<param name="pixx:popupmenustring0_7" value="-">
			<param name="pixx:popupmenustring0_8" value="Add Friend">
			<param name="pixx:popupmenucommand0_8_1" value="/gateway addbuddy %1">
			<param name="pixx:popupmenucommand0_8_2" value="/addbuddy %1">
			<param name="pixx:popupmenustring0_9" value="Delete Friend">
			<param name="pixx:popupmenucommand0_9_1" value="/gateway delbuddy %1">
			<param name="pixx:popupmenucommand0_9_2" value="/delbuddy %1">
			<param name="pixx:popupmenustring0_10" value="Block">
			<param name="pixx:popupmenucommand0_10_1" value="/gateway addblock %1">
			<param name="pixx:popupmenucommand0_10_2" value="/ignore %1">
			<param name="pixx:popupmenustring0_11" value="Temporary Block">
			<param name="pixx:popupmenucommand0_11_1" value="/ignore %1">
			<param name="pixx:popupmenucommand0_11_2" value="/echo  -- [ Messages from %1 will be blocked until you log off. ] -- ">
			<param name="pixx:popupmenustring0_12" value="Unblock">
			<param name="pixx:popupmenucommand0_12_1" value="/unignore %1">
			<param name="pixx:popupmenucommand0_12_2" value="/gateway delblock %1">
			<param name="pixx:popupmenustring0_13" value="-">
						<param name="pixx:popupmenustring0_14" value="Report Abuse">
			<param name="pixx:popupmenucommand0_14_1" value="/gateway report %1 %2">
			<param name="pixx:popupmenucommand0_14_2" value="/echo -- [ Your Report was sent. If a moderator is available, the report will be looked at shortly. ] -- ">
			<param name="pixx:showstatus" value="true">
			<param name="pixx:showchanlist" value="false">
			<param name="pixx:showabout" value="false">
			<param name="pixx:showconnect" value="false">
			<param name="pixx:displaychannelmode" value="false">
			<param name="pixx:nickprefix" value="\b<\b\k4,0">
			<param name="pixx:nickpostfix" value="\k1,0\b>\b\s">
						<param name="pixx:showchannelmodeapply" value="false">
			<param name="pixx:showchannelnickmodeapply" value="false">
						<param name="pixx:helppage" value="http://www.ukchatterbox.co.uk/rules">
						<param name="pixx:highlight" value="false">
			<param name="pixx:highlightnick" value="true">
			<param name="pixx:highlightcolor" value="4">
			<param name="pixx:nickfield" value="false">
			<param name="pixx:styleselector" value="true">
			<param name="pixx:setfontonstyle" value="true">
			<!-- voice icon -->
			<param name="pixx:color10" value="336699">
			<!-- op icon -->
			<!--<param name="pixx:color11" value="770000">-->
			<!-- halfop icon -->
			<!--<param name="pixx:color12" value="770000">-->
			<param name="pixx:color15" value="999999">
			<!-- staff with "Staff", "Moderator" or "Administrator" in realname -->
			<param name="pixx:color16" value="770000">

			<param name="pixx:defaultfontfg" value="1">
			<param name="pixx:defaultfontbg" value="0">
			<param name="pixx:defaultfontbold" value="0">
			<param name="pixx:defaultfontunderline" value="0">

			<param name="style:backgroundimage" value="true">
			<param name="style:sourcefontrule1" value="none+Channel all Arial 14">
			<param name="style:linespacing" value="3">
			<param name="style:floatingasl" value="true">
			<param name="style:bitmapsmileys" value="true">
			<param name="style:highlightlinks" value="true">
			<param name="style:smiley1" value="(SASSY) img/sassy.png">
			<param name="style:smiley2" value="(OCE) img/oce.png">
			<param name="style:smiley3" value="(CAR) img/ukcb/car.png">
			<param name="style:smiley4" value="(RB) img/ukcb/rainbow.png">
			<param name="style:smiley5" value="(ALLY) img/ally.png">
			<param name="style:smiley6" value="(ST) img/ukcb/star.png">
			<param name="style:smiley7" value="(PU) img/ukcb/pumpkin.png">
			<param name="style:smiley8" value="(%%) img/ukcb/clover.png">
			<param name="style:smiley9" value="(CL) img/ukcb/rain.png">
			<param name="style:smiley10" value="(MUS) img/ukcb/music.png">
			<param name="style:smiley11" value="(FB) img/ukcb/football.png">
			<param name="style:smiley12" value="(CI) img/ukcb/cigarette.png">
			<param name="style:smiley13" value="(D) img/ukcb/cocktail.png">
			<param name="style:smiley14" value="(B) img/ukcb/beer.png">
			<param name="style:smiley15" value="(COF) img/ukcb/coffee.png">
			<param name="style:smiley16" value="(FSH) img/ukcb/fish.png">
			<param name="style:smiley17" value="(TUR) img/ukcb/turtle.png">
			<param name="style:smiley18" value="(SN) img/ukcb/snail.png">
			<param name="style:smiley19" value="(MOO) img/ukcb/cow.png">
			<param name="style:smiley20" value="(BAA) img/ukcb/sheep.png">
			<param name="style:smiley21" value="(MKY) img/ukcb/monkey.png">
			<param name="style:smiley22" value="(PGN) img/ukcb/penguin.png">
			<param name="style:smiley23" value="(RAB) img/ukcb/rabbit.png">
			<param name="style:smiley24" value="(DOG) img/ukcb/dog.png">
			<param name="style:smiley25" value="(CAT) img/ukcb/cat.png">
			<param name="style:smiley26" value="(CAK) img/ukcb/cake.png">
			<param name="style:smiley27" value="(G) img/ukcb/present.png">
			<param name="style:smiley28" value="(F2) img/ukcb/flower.png">
			<param name="style:smiley29" value="(F) img/ukcb/rose.png">
			<param name="style:smiley30" value="(N) img/ukcb/bad.png">
			<param name="style:smiley31" value="(Y) img/ukcb/good.png">
			<param name="style:smiley32" value="(U) img/ukcb/heart2.png">
			<param name="style:smiley33" value="(L) img/ukcb/heart.png">
			<param name="style:smiley34" value="(NT) img/ukcb/leonardo.png">
			<param name="style:smiley35" value="(NI) img/ukcb/ninja.png">
			<param name="style:smiley36" value="(AAR) img/ukcb/pirate.png">
			<param name="style:smiley37" value="(SC) img/ukcb/santa.png">
			<param name="style:smiley38" value="(IN) img/ukcb/redindian.png">
			<param name="style:smiley39" value="<):) img/ukcb/cowboy.png">
			<param name="style:smiley40" value="(WI) img/ukcb/wizard.png">
			<param name="style:smiley41" value="(ET) img/ukcb/alien.png">
			<param name="style:smiley42" value="O-) img/ukcb/cyclops.png">
			<param name="style:smiley43" value="(COP) img/ukcb/cop.png">
			<param name="style:smiley44" value="(BAL) img/ukcb/balloon.png">
			<param name="style:smiley45" value="<:) img/ukcb/party.png">
			<param name="style:smiley46" value=":o) img/ukcb/clown.png">
			<param name="style:smiley47" value="(66) img/ukcb/devil2.png">
			<param name="style:smiley48" value="(6) img/ukcb/devil.png">
			<param name="style:smiley49" value="(HP) img/ukcb/headphones.png">
			<param name="style:smiley50" value="(SG) img/ukcb/smug.png">
			<param name="style:smiley51" value="(X) img/ukcb/grumpy.png">
			<param name="style:smiley52" value="(O) img/ukcb/ohh.png">
			<param name="style:smiley53" value="O.o img/ukcb/hmm.png">
			<param name="style:smiley54" value="(Z) img/ukcb/yawn.png">
			<param name="style:smiley55" value="8-D img/ukcb/elated.png">
			<param name="style:smiley56" value="(AWE) img/ukcb/happy3.png">
			<param name="style:smiley57" value="(SUS) img/ukcb/suspicious.png">
			<param name="style:smiley58" value="(LV2) img/ukcb/love2.png">
			<param name="style:smiley59" value="(LV) img/ukcb/love.png">
			<param name="style:smiley60" value=":x img/ukcb/sick.png">
			<param name="style:smiley61" value=">.< img/ukcb/concentrating.png">
			<param name="style:smiley62" value="8-S img/ukcb/wacko.png">
			<param name="style:smiley63" value=":$ img/ukcb/embarrassed.png">
			<param name="style:smiley64" value="O_O img/ukcb/eek.png">
			<param name="style:smiley65" value="0:) img/ukcb/innocent.png">
			<param name="style:smiley66" value=":S img/ukcb/worried.png">
			<param name="style:smiley67" value="(ASH) img/ukcb/ashamed.png">
			<param name="style:smiley68" value="(ZZ) img/ukcb/sleeping.png">
			<param name="style:smiley69" value=":* img/ukcb/kiss.png">
			<param name="style:smiley70" value="(SUR) img/ukcb/surrender.png">
			<param name="style:smiley71" value="(W) img/ukcb/whistle.png">
			<param name="style:smiley72" value=";d img/ukcb/tongue2.png">
			<param name="style:smiley73" value="x~x img/ukcb/dazed2.png">
			<param name="style:smiley74" value="x_x img/ukcb/dazed.png">
			<param name="style:smiley75" value="B| img/ukcb/sunglasses.png">
			<param name="style:smiley76" value="(SA) img/ukcb/smartass.png">
			<param name="style:smiley77" value="(PFF) img/ukcb/hmpf.png">
			<param name="style:smiley78" value="(RE) img/ukcb/rolleyes.png">
			<param name="style:smiley79" value="¬_¬ img/ukcb/shifty.png">
			<param name="style:smiley80" value="(BRB) img/ukcb/brb.png">
			<param name="style:smiley81" value="(BYE) img/ukcb/bye.png">
			<param name="style:smiley82" value="(HI) img/ukcb/hi.png">
			<param name="style:smiley83" value="-_- img/ukcb/chilled.png">
			<param name="style:smiley84" value="B-) img/ukcb/sunglasses2.png">
			<param name="style:smiley85" value="8) img/ukcb/nerd.png">
			<param name="style:smiley86" value="(A) img/ukcb/angel.png">
			<param name="style:smiley87" value=":o img/ukcb/shock2.png">
			<param name="style:smiley88" value=":P img/ukcb/tongue.png">
			<param name="style:smiley89" value=";) img/ukcb/wink.png">
			<param name="style:smiley90" value=":`(( img/ukcb/crying2.png">
			<param name="style:smiley91" value=":`( img/ukcb/crying.png">
			<param name="style:smiley92" value=">:(( img/ukcb/angry.png">
			<param name="style:smiley93" value=">:/ img/ukcb/annoyed2.png">
			<param name="style:smiley94" value=">:( img/ukcb/annoyed.png">
			<param name="style:smiley95" value=":( img/ukcb/sad.png">
			<param name="style:smiley96" value=":| img/ukcb/dave.png">
			<param name="style:smiley97" value=":D img/ukcb/grin.png">
			<param name="style:smiley98" value=":)) img/ukcb/happy2.png">
			<param name="style:smiley99" value="^_^ img/ukcb/happy.png">
			<param name="style:smiley100" value="=] img/ukcb/smile2.png">
			<param name="style:smiley101" value=":) img/ukcb/smile.png">
			Sorry but you do not have Java Installed. Please download Java from <a href="http://www.java.com/en/download/windows_automatic.jsp">Sun Java website</a>
		</applet>
	</body>
</html>


Re: Tricking IRC... [Re: BradyBunchFanboy] #235740 08/01/12 07:26 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
In general, people here won't help you break the rules of a server or bypass whatever they have for security. The short answer is that the applet probably sends a specific command or version data. You would have to figure out what that is and reproduce it. Or just wait the 14 days. That's hardly a long time to wait.


Invision Support
#Invision on irc.irchighway.net
Re: Tricking IRC... [Re: BradyBunchFanboy] #235742 08/01/12 08:51 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I belive it will take you more then 14 days to figure out how to trick the server, why not just wait?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }