Jump to content

Uranium-235

Members
  • Posts

    21
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://uranium.paintbug.com
  • ICQ
    82510498

Profile Information

  • Gender
    Not Telling

Uranium-235's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I don't mind using PHP to generate this instead of VB, but every key I try to generate, it dosen't connect, nor give me an error. UVNC must have its own slightly modified version of RC4 files. Anybody have ANY idea how to go about this?
  2. so i'm using vb.net and PHP for a new helpdesk software i'm making for myself it uses UltraVNC and I want each account to have a key. My luck with making a key in VB.net has gotten nowhere. I've been messing around with pack() and have gotten somewhere but am still having problems. attached is a key file. Its 128-bit RC4, each key begins with "128 bitL". I've searched through Uvc's forum with no luck as how to go about this. Help pls rc4.zip
  3. I think one thing I can also do is $str = str_replace('=', '==', $str); $str = str_replace('<==', '<=', $str); $str = str_replace('>==', '>=', $str); but i'm not sure how it would compare cpu intensity wise
  4. I'm not 100% sure on what you're meaning, but you want might to make those session variables arrays if those are the ones you want to 'loop' through.
  5. I probably overdid all of it but hey it works. like this is what i'm taking in: S=8x16,S=8x10&V=10-50 and ending up with "5x11"=="8x16" || "5x11"=="8x10" && 6.3 >= 10 && 6.3 <= 50 which I will later eval() heres the code. i'm so worried about something going wrong I don't take any shortcuts, i'm sure I didn't have to use a decimil for each number i'm sure there is a flag for any number but not sure it applies to double type numbers $replace_arr = array('D' => $dia, 'L' => $len, 'V' => $volt, 'C' => $cap, 'R' => $ripple, 'E' => $esr, 'S' => $dia . 'x' . $len); foreach($replace_arr AS $replace => $replace_with) { $str = str_replace($replace, $replace_with, $str); } $str = str_replace('&', ' && ', $str); $str = preg_replace('/([0-9]{0,8}[\.]?[0-9]{0,8})[=]{1}([0-9]{0,8}[\.]?[0-9]{0,8})[-]{1}([0-9]{0,8}[\.]?[0-9]{0,8})/m', '$1 >= $2 && $1 <= $3', $str); $str = preg_replace('/(?<!<|>)=/m', '==', $str); $str = preg_replace('/([0-9]{0,8}[\.]?[0-9]{0,8})x([0-9]{0,8}[\.]?[0-9]{0,8})/m', "\"$1x$2\"", strtolower($str)); $str = str_replace(',', ' || ', $str); print($str . "<br/>\n");
  6. thank you! it worked. Still confused by look aheads and behinds. preg is so much more complex than postix ereg
  7. hey guys, long, long long long time no see. anyways, I stopped using ereg and am getting pretty good @ preg, but am running into a problem with one statement. what i'm trying to do is change a parsed text statement into a conditional statement, and am getting it done pretty well but one thing is not working take this string (this string has had variables replaced in to get to where it is now by earlier code, i'm going to eval() it) 5x11=8x11.5&6.3=6.3 but since I want to eval it, I need to turn the = into == other possible conditionals in these strings include < > <= >= of course if I did a simple str_replace, it would turn all other <= into <== which is a nono to be evaled so I do this $str = preg_replace('/[^\<\>][\=]{1}/m', '==', '5x11=8x11.5&6.3=6.3'); to try to say, match the =, but don't match any < or > in front of it and replace it with a == but it cuts the last numbers off of the successful == statement turning 5x11=8x11.5&6.3=6.3 into 5x1==8x11.5&6.==6.3 I essentially want the match to fail if there is a < or > front of the = sign, but its matching and taking the last number off if it does match any help?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.