Sign in to follow this  
Followers 0
emoyasha

encryption over tcp

13 posts in this topic

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


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)-----------------------------------

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by emoyasha

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)-----------------------------------

Share this post


Link to post
Share on other sites

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... :)

Share this post


Link to post
Share on other sites

okay i didnt wanna get yelled at by someone, lol, i probably will for this post though, but can you offer any advice?


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)-----------------------------------

Share this post


Link to post
Share on other sites

but what is causing it


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)-----------------------------------

Share this post


Link to post
Share on other sites

well when send it split from one peice of data into four peices


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)-----------------------------------

Share this post


Link to post
Share on other sites

#9 ·  Posted (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 by emoyasha

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)-----------------------------------

Share this post


Link to post
Share on other sites

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 ("")

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

i fixed it

$stext = stringtrimright( $stext, 1)

because the character was always one letter to the right :)


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)-----------------------------------

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0