emoyasha Posted February 9, 2008 Share Posted February 9, 2008 okay i am encrypting messages over tcp receiving end: $detext = _StringEncrypt( 0, $sText, "0044", 2) $sText = $detext $sText = "<i>"&"<img src=" & $image & ">" & $sUsername & ' says:</i><br><table width="95%" border="0" align="center"><tr><td><font face="Verdana" size=-1>' & FormatChat($sText) & "</td></tr></table>"oÝ÷ Úǧv)àzwZºÚ"µÍÌÍÙ]^HÔÝ[Ñ[Ü K ÌÍÝ^ ][ÝÌ ][ÝËBBBBHBBBUÔÙ[ ÌÍÔÛØÚÙ] ÌÍÓQTÔÐQÑH [È ][ÝÈ ][ÝÈ [È ÌÍÐÚ[ÛÛØ][ÛÉÌÍÞWH [È ][ÝÈ^ ][ÝÈ [È ÌÍÙ]^ this works almost perfect however on the receiving end, a number or strange unicode object will show up at the end of every received sentence, i mean its not to bad, but i want to know how to stop it. an example is attached.log.htm Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
emoyasha Posted February 9, 2008 Author Share Posted February 9, 2008 (edited) i would edit my post and tell you this, however when i went to edit it, it turned all to Unicode characters, dose anyone else have that problem? but that is a log of me sending messages to myself and receiving them. (i also noticed the Unicode character thats at the end depends on how many characters are send, liek one letter or number appends a + to the end five letters and numbers add a 7 four ad"..." six add nothing seven add this weird bar thing. so i hope that info helpssps Edited February 9, 2008 by emoyasha Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
BrettF Posted February 9, 2008 Share Posted February 9, 2008 i would edit my post and tell you this, however when i went to edit it, it turned all to unicode charachters, dose anyone else have that problem? but that is a log of me sending message sto myself and receiving them.Known problem with the AutoIt code boxes... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
emoyasha Posted February 9, 2008 Author Share Posted February 9, 2008 okay i didnt wanna get yelled at by someone, lol, i probably will for this post though, but can you offer any advice? Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
BrettF Posted February 9, 2008 Share Posted February 9, 2008 Read http://www.autoitscript.com/forum/index.ph...=_StringEncryptThere was an alt option posted somewhere... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
emoyasha Posted February 9, 2008 Author Share Posted February 9, 2008 but what is causing it Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
BrettF Posted February 9, 2008 Share Posted February 9, 2008 Dropped packets, could be anything. Is there any other parsing done to the text sent/recived? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
emoyasha Posted February 9, 2008 Author Share Posted February 9, 2008 well when send it split from one peice of data into four peices Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
emoyasha Posted February 9, 2008 Author Share Posted February 9, 2008 (edited) one of the four pieces being the text to be decrypted, i dont think its dropped packets cause there are exter things at theend, maybe the string addign extra characters, or spaces, i dunno why it would be happening edit: - okay i noticed they used text to binary and back, this fairly good however it just dosent meet the standards binary is way to easy to break. are there any simple encryption udfs avalable Edited February 9, 2008 by emoyasha Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
erezlevi Posted February 9, 2008 Share Posted February 9, 2008 do you have a sniffer on your PC ? it can help alot to see what you relly recieving. your "unicode" char indicate that you are using perhaps a window chat with ANSI support is it ? those char should be the position of where to put the words in the screen. chr(27) indicates an Escape ("") Link to comment Share on other sites More sharing options...
BrettF Posted February 9, 2008 Share Posted February 9, 2008 Like I said, look in that thread for an alternitave that was suggested. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 9, 2008 Share Posted February 9, 2008 Instrument your script, something like this: ; ...xmt $sMsg = "$stext = " & $text & @CRLF $etext = _StringEncrypt( 1, $text, "0044", 2) $sMsg &= "$etext = " & $etext MsgBox(64, "Debug: Transmit", $sMsg) TCPSend($Socket, $MESSAGE & " " & $ChildConversation[$y] & " Text " & $etext ) ; ...rcv $sMsg = "$sText = " & $sText & @CRLF $detext = _StringEncrypt( 0, $sText, "0044", 2) $sMsg &= "$detext = " & $detext & @CRLF $sText = $detext $sText = "<i>"&"<img src=" & $image & ">" & $sUsername & _ ' says:</i><br><table width="95%" border="0" align="center"><tr><td><font face="Verdana" size=-1>' & _ FormatChat($sText) & "</td></tr></table>" $sMsg &= "$sText = " & $sText MsgBox(64, "Debug: Receive", $sMsg) If the problem is intermittent, then log this info to a file vice messages boxes, so you can go back and look for the problem when it fails. I notice you are NOT sending just what you are using in the recv script. But if the undisclosed process of adding/stripping the $MESSAGE/$ChildConversation[$y]/"Text" off of the string is failing, it will be obvious from the debug values. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
emoyasha Posted February 22, 2008 Author Share Posted February 22, 2008 i fixed it $stext = stringtrimright( $stext, 1) because the character was always one letter to the right Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now