--> Show Posts - Netham45 --> -->

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Netham45

Pages: 1 ... 30 31 [32] 33 34 ... 123
466
Other / Re: Windows 8
« on: June 17, 2011, 07:13:15 pm »
It's not built from the ground up, it has a new UI that was partially built from the ground up(and relies totally on IE10, which I am honestly afraid of).

467
-fix'd.
-fix'd.

-fix'd.

468
Kinda. I can add them, but they have to have different names right now.

469
Try deleting your cookies. I redid how part of the cookies are stored.

470
If anyone has any other suggestions for community chans (looking for existing ones, not that interested in making new ones just to populate the chan list), I'm all ears, too.

471
Other / Re: Windows 8
« on: June 17, 2011, 01:01:15 am »
This is a -DESKTOP- OS that has TABLET support. The desktop still runs just fine.

The tablet will not run desktop EXEs, because it is ARM-based.

472
OmnomIRC Development / OmnomIRC updates - 06/16
« on: June 16, 2011, 07:58:56 pm »
I pushed a fair number of OmnomIRC updates today.

Server-side:
  • OmnomIRC is now a PHP bot. It won't keep disconnecting like the old mIRC bot did, and a number of exploits have been resolved thanks to this
  • Forum staff now have the ability to restart the bot

Client-side:
  • There have been more channels added. #Omnimaga, #Omnimaga-fr, #Omnimaga-Spam, and #nspire-lua are currently supported. To get the last two, please enable the 'Extra Channels' option in the options
  • The userlist updates again. It also live-updates when users sign into or out of IRC
  • Tab completion once again works
  • Moderators will find the moderator chan available




Please clear your caches on your client, if it is not working properly.
See http://ourl.ca/10749 for more help on that.

473
News / Re: OS 3.0.2 downgrade now possible with DowngradeFix
« on: June 15, 2011, 11:16:23 pm »
just curious, are you using the same buffer overflow on zips as in the other ndless/nleash?

474
they're not going to redesign an architecture that's well over a decade old just to block a small group of hackers.

475
My guess for this is that they're checking for a new signature, or if the MD5 equals something known.

The new signature probably isn't loaded from the cert anymore, either, they learned their lesson on that one.

If you can patch after install, though, it'd be rather trivial to put a new OS in there. Do the standard unlock tricks still work?

476
News / Re: OS 3.0.2 downgrade now possible with DowngradeFix
« on: June 15, 2011, 10:57:14 pm »
This means we have code execution on 3.0.{1,2}?

477
OmnomIRC Development / Re: Various bits of OmnomIRC Source Code
« on: June 15, 2011, 10:40:16 pm »
OMNOMNOMNOM

PHP Source code finished finally.

Managed to do it without threads, w00t.

Code: [Select]
<?PHP
function sql_query()
{
global $sqlConnection;
$params = func_get_args();
$query = $params[0];
$args = Array();
for ($i=1;$i<count($params);$i++)
$args[$i-1] = mysql_real_escape_string(trim($params[$i]),$sqlConnection);
$result = mysql_query(vsprintf($query,$args),$sqlConnection);
if (!$result)
die(mysql_error() . "Query: " . vsprintf($query,$args));
return $result;
}

function sendLine($line)
{
global $socket;
$line = trim($line) . "\n";
socket_write($socket,$line);
echo "<<" . $line;
}

function getMessage($parts,$start,$trim)
{
if($trim)
$message = substr($parts[$start++],1);
for ($i = $start; $i < count($parts);$i++)
$message = $message . " " . $parts[$i];

$message = trim($message);
return $message;
}

function parseMsg($allMessage)
{
global $socket,$hasIdent,$ident;
$lines = explode("\n",$allMessage);
foreach ($lines as $Message)
{
$parts = explode(" ",$Message);
preg_match("/:(.*)!(.*)@(.*)/",$parts[0],$info);
$channel = strtolower($parts[2]);
$isChan = (substr($channel,0,1)=="#");
if (strtolower($parts[0]) == "ping")
sendLine("PONG " . trim($parts[1]) . "\n");
switch(strtolower($parts[1]))
{
case "privmsg":

if ($parts[3] == ":-snip-") sendLine(getMessage($parts,4,false));
if (!$isChan) break;
$message = getMessage($parts,3,true);
if (preg_match("/ACTION (.*)/",$message,$messageA))
addLine($info[1],'','action',$messageA[1],$channel);
else
addLine($info[1],'','message',$message,$channel);
break;
case "join":
addLine($info[1],'','join','',$channel);
break;
case "part":
$message = getMessage($parts,3,true);
addLine($info[1],'','part',$message,$channel);
break;
case "mode":
if (!$isChan) break;
$message = getMessage($parts,3,false);
addLine($info[1],'','mode',$message,$channel);
break;
case "kick":
$message = getMessage($parts,4,true);
addLine($info[1],$parts[3],"kick",$message,$channel);
break;
case "quit":
$message = getMessage($parts,2,true);
addLine($info[1],'',"quit",$message,'');
break;
case "topic":
$message = getMessage($parts,3,true);
addLine($info[1],'',"topic",$message,'');
break;
case "nick":
$message = getMessage($parts,2,true);
addLine($info[1],$message,"nick",'','');
break;
case "376":
sendLine("JOIN #omnimaga\n");
break;
}
}
}

function addLine($name1,$name2,$type,$message,$channel)
{
global $socket;
$curPosArr = mysql_fetch_array(sql_query("SELECT MAX('line_number') FROM `irc_lines`"));
$curPos =  $curPosArr[0]+ 1;
sql_query("INSERT INTO `irc_lines` (`name1`,`name2`,`message`,`type`,`channel`,`time`) VALUES ('%s','%s','%s','%s','%s','%s')",$name1,$name2,$message,$type,$channel,date("[H:i:s]"));
sql_query("DELETE FROM `irc_lines` WHERE `line_number` < %s",$curPos - 1000);
}

function processMessages()
{
$res = sql_query("SELECT * FROM irc_outgoing_messages");

while ($row = mysql_fetch_array($res))
{
if ($row['action'] == 0)
sendLine("PRIVMSG $row[channel] :12(O)<$row[nick]> $row[message]");
if ($row['action'] == 1)
sendLine("PRIVMSG $row[channel] :12(O)6* $row[nick] $row[message]");
}
sql_query("DELETE FROM `irc_outgoing_messages`");
}
?>

<?PHP
error_reporting(0);
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);

if (!socket_connect($socket,"irc.mzima.net",6667))
die("Could not connect. Error: " . socket_last_error());
socket_set_nonblock($socket);
$sqlConnection = mysql_connect("-snip-","-snip-","-snip-");
if (!$sqlConnection)
die("Could not connect to SQL DB.");
if (!mysql_select_db("omnomirc",$sqlConnection)) die('Invalid query: ' . mysql_error());
sql_query("DELETE FROM `irc_outgoing_messages`");
$ident = "PASS none\nUSER OmnomIRC OmnomIRC OmnomIRC :OmnomIRC\nNICK OmnomIRC\n";

sleep(1);
sendLine($ident);
while (true)
{

if ($recBuf = socket_read($socket,1024))
{
echo ">>" . $recBuf;
parseMsg($recBuf);
}
$errorcode = socket_last_error();
socket_clear_error();
if (!$recBuf && $errorcode == 0)
die("Connection lost!");
processMessages();
usleep(2000);
}
socket_close($socket);
?>

Running this with
Code: (run.bat) [Select]
@echo off
:run
time /T
echo Starting...
php OmnomIRC.php
echo DIED! Sleeping for 30 seconds...
choice /T 30 /c as /D a /n /m "Died! Restarting in 30 seconds..."
goto run

478
OmnomIRC Development / Re: OmnomIRC/IRCD/SpyBot45 outage -TAKE TWO-
« on: June 15, 2011, 10:37:12 pm »
Didn't feel like opening a new thread to post this, but OmnomIRC has been moved to the PHP bot for efnet #omnimaga.

Omnimaga.org IRC is currently seperated, though, as the linker bot was dependent on mIRC OmnomIRC. I'll get that fixed soon, that'll be a simple fix.

479
Ah ok.

By the way could the refreshing stopping randomly be casued by my wi-fi connection going down during like half a second sometimes?


The way it's written, it should be able to overcome that, though it might be waiting for the page request to die if it happens when the internet is down.

Next time it happens, let that tab sit for like 45 seconds and if so, it should start working again.

480
Other / Re: Windows 8
« on: June 15, 2011, 07:32:31 pm »
Also, voting 'Other' for the poll, I'ma install it on my existing android tablet. `-`

Pages: 1 ... 30 31 [32] 33 34 ... 123