A heads up if you're trying to run Fiddler on a Mac with mono 5.2. Starting from Mono 5.2, the "mono"command defaults to 64-bit. Use --arch=32 switch to 32-bit mode to run Fiddler.exe.
mono --arch=32 Fiddler.exe
This threw me for a while as I'm not a mono user and Fiddler continually failed on start with the error below.
WARNING: The Carbon driver has not been ported to 64bits, and very few parts of Windows.Forms will work properly, or at all
Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) System.Windows.Forms.XplatUICarbon.CGDisplayBounds (intptr) [0x00002] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
```
bash-4.3# mono Fiddler.exe
exception inside UnhandledException handler: The type initializer for 'Fiddler.CONFIG' threw an exception.
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception. ---> System.DllNotFoundException: libgdiplus.so.0
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000cc] in <1917aa1c39d94b1a91807b8cd9f03350>:0
--- End of inner exception stack trace ---
at System.Drawing.KnownColors..cctor () [0x0001a] in <1917aa1c39d94b1a91807b8cd9f03350>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.EnableVisualStyles () [0x00006] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0
at Fiddler.frmViewer.ÂÂ (System.String[] ÂÂ) [0x00040] in <1f5c91af40d14c0eb3b0cb76da0ecdcc>:0
at Fiddler.frmViewer.ÂÂ (System.String[] ÂÂ) [0x00016] in <1f5c91af40d14c0eb3b0cb76da0ecdcc>:0
```
Slackware64_14.2
Mono JIT compiler version 4.6.2 (Stable 4.6.2.7/08fd525 Thu Feb 2 14:37:53 CET 2017)
I got a request every 5 seconds from my software to the server in the form
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="default" SOAP-ENV:encodingStyle="default">
<SOAP-ENV:Body>
<login user="xxxx" password="xxxx" token="jrxrOIX8aziQvGs4" />
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
is there a way i can capture the value of the token and create a new request of a different form with the same token using fiddlercore and c# ?
cheers
So i have the below request
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="default" SOAP-ENV:encodingStyle="default">
<SOAP-ENV:Body>
<login user="3602e743d1ba76fb" password="888888" terminal_id="3602e743d1ba76fb" terminal_type="1" mac="08:00:27:db:56:ce" netmode="4" soft_ver="000 pad_1.2.09 eng..20170714.181621" hard_ver="376 KTU84P" epg="epo" token="SKeXAEmnvgBKp74A" />
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
How can i replace parts of this in c# such as 3602e743d1ba76fb with another number ?
is this correct ? it doesn't seem to work
Fiddler.FiddlerApplication.BeforeRequest += delegate(Fiddler.Session oS)
{
oS.bBufferResponse = true;
oS.utilDecodeRequest();
oS.utilReplaceInRequest("3602e743d1ba76fb", "4c1d80a8f35e6a4d"); //userid
oS.utilReplaceInRequest("08:00:27:db:56:ce", "38:1d:d9:9a:51:a2"); //mac
};
Hi!
www.MarketVolume.com provides a Chart that displays data from the stock market. It is available to subscribers that login.
Can I use Fiddler to capture the data that is displayed in the Chart?
In the Chart, I can set the frequency of the update. For example, every 15 minutes the Chart is updated. So, I assume there's a request/response method using login credentials.
Hi,
iOS - 10.3
Android - 4.1
Not working only for the last days, before it worked good.
Any idea how to fix it? (screenshot attached)
We have installed mono and fiddler as per the instructions here, but it just wont start. Any help much appreciated.
Errors are:
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Process 4827 detached
(lldb) quit
Abort trap: 6
In full below:
WARNING: The Carbon driver has not been ported to 64bits, and very few parts of Windows.Forms will work properly, or at all
Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) System.Windows.Forms.XplatUICarbon.CGDisplayBounds (intptr) [0x00002] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
at System.Windows.Forms.XplatUICarbon.get_WorkingArea () [0x00005] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
at System.Windows.Forms.XplatUICarbon.get_VirtualScreen () [0x00000] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
at System.Windows.Forms.XplatUI.get_VirtualScreen () [0x00000] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
at System.Windows.Forms.Screen..cctor () [0x00034] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) [0x0001e] in <c9f8153c41de4f8cbafd0e32f9bf6b28>:0
at <unknown> <0xffffffff>
at System.Windows.Forms.Form.get_CreateParams () [0x00157] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
at System.Windows.Forms.Control.CreateHandle () [0x0002a] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
at System.Windows.Forms.Form.CreateHandle () [0x00000] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
at System.Windows.Forms.Control.CreateControl () [0x00039] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
at System.Windows.Forms.Control.SetVisibleCore (bool) [0x0003a] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
at System.Windows.Forms.Form.SetVisibleCore (bool) [0x00065] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
at System.Windows.Forms.Control.set_Visible (bool) [0x00009] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
at System.Windows.Forms.Control.Show () [0x00000] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.Show () [0x00031] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
at Fiddler.frmViewer. (string[]) [0x00081] in <09623c708fdb40a483cea147bbea7a7f>:0
at Fiddler.frmViewer. (string[]) [0x00016] in <09623c708fdb40a483cea147bbea7a7f>:0
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) [0x0004e] in <09623c708fdb40a483cea147bbea7a7f>:0
Native stacktrace:
0 mono 0x0000000101a72061 mono_handle_native_crash + 257
1 mono 0x0000000101ad7ec6 altstack_handle_and_restore + 70
2 SkyLight 0x00007fffba686fc2 SLDisplayBounds + 50
3 ??? 0x0000000109ad476e 0x0 + 4457318254
4 ??? 0x0000000101ee141f 0x0 + 4327347231
5 mono 0x00000001019c8505 mono_jit_runtime_invoke + 2245
6 mono 0x0000000101bc9d48 do_runtime_invoke + 88
7 mono 0x0000000101bc5cdd mono_runtime_class_init_full + 1021
8 mono 0x00000001019c1efa mono_jit_compile_method_inner + 2442
9 mono 0x00000001019c484a mono_jit_compile_method_with_opt + 714
10 mono 0x0000000101a7466f common_call_trampoline + 1199
11 mono 0x0000000101a74189 mono_magic_trampoline + 73
12 ??? 0x0000000101e2939e 0x0 + 4326593438
13 ??? 0x0000000109782fd5 0x0 + 4453838805
14 ??? 0x0000000105a6c7b7 0x0 + 4389783479
15 ??? 0x0000000105a6c480 0x0 + 4389782656
16 ??? 0x0000000101ee100c 0x0 + 4327346188
17 mono 0x00000001019c8505 mono_jit_runtime_invoke + 2245
18 mono 0x0000000101bc9d48 do_runtime_invoke + 88
19 mono 0x0000000101bcd1bc do_exec_main_checked + 140
20 mono 0x0000000101a3734e mono_jit_exec + 302
21 mono 0x0000000101a39757 mono_main + 8167
22 mono 0x00000001019b959a main + 1690
23 mono 0x00000001019b8ef4 start + 52
Debug info from gdb:
(lldb) command source -s 0 '/tmp/mono-gdb-commands.B7sYsu'
Executing commands in '/tmp/mono-gdb-commands.B7sYsu'.
(lldb) process attach --pid 4827
warning: (x86_64) /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/4.5/mscorlib.dll.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.
warning: (x86_64) /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/libglib-2.0.0.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.
Process 4827 stopped
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00007fffbe4653ee libsystem_kernel.dylib`__wait4 + 10
libsystem_kernel.dylib`__wait4:
-> 0x7fffbe4653ee <+10>: jae 0x7fffbe4653f8 ; <+20>
0x7fffbe4653f0 <+12>: movq %rax, %rdi
0x7fffbe4653f3 <+15>: jmp 0x7fffbe45dcd4 ; cerror
0x7fffbe4653f8 <+20>: retq
Executable module set to "/Library/Frameworks/Mono.framework/Versions/5.2.0/bin/mono".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread list
Process 4827 stopped
* thread #1: tid = 0x1489ba, 0x00007fffbe4653ee libsystem_kernel.dylib`__wait4 + 10, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
thread #2: tid = 0x1489be, 0x00007fffbe464bf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
thread #3: tid = 0x1489bf, 0x00007fffbe45d386 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'Finalizer'
thread #4: tid = 0x1489c0, 0x00007fffbe46544e libsystem_kernel.dylib`__workq_kernreturn + 10
thread #5: tid = 0x1489c1, 0x00007fffbe46544e libsystem_kernel.dylib`__workq_kernreturn + 10
thread #6: tid = 0x1489c2, 0x00007fffbe46544e libsystem_kernel.dylib`__workq_kernreturn + 10
thread #7: tid = 0x148a30, 0x00007fffbe464bf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Timer-Scheduler'
(lldb) thread backtrace all
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x00007fffbe4653ee libsystem_kernel.dylib`__wait4 + 10
frame #1: 0x0000000101a720ed mono`mono_handle_native_crash(signal="SIGSEGV", ctx=<unavailable>, info=<unavailable>) at mini-exceptions.c:2555 [opt]
frame #2: 0x0000000101ad7ec6 mono`altstack_handle_and_restore(ctx=0x00007fff5e247010, obj=0x0000000000000000, stack_ovf=0) at exceptions-amd64.c:795 [opt]
frame #3: 0x00007fffba686fc2 SkyLight`SLDisplayBounds + 50
frame #4: 0x0000000109ad476e
frame #5: 0x0000000101ee141f
frame #6: 0x00000001019c8505 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=0x0000000000000000, params=<unavailable>, error=<unavailable>) at mini-runtime.c:2549 [opt]
frame #7: 0x0000000101bc9d48 mono`do_runtime_invoke(method=0x00007ffc7b0941e8, obj=0x0000000000000000, params=0x0000000000000000, exc=0x00007fff5e2478e8, error=0x00007fff5e247ae8) at object.c:2829 [opt]
frame #8: 0x0000000101bc5cdd mono`mono_runtime_class_init_full [inlined] mono_runtime_try_invoke(method=<unavailable>, obj=<unavailable>, params=<unavailable>, error=0x00007fff5e247ae8) at object.c:2937 [opt]
frame #9: 0x0000000101bc5c9c mono`mono_runtime_class_init_full(vtable=0x00007ffc7b0b6330, error=0x00007fff5e247ae8) at object.c:471 [opt]
frame #10: 0x00000001019c1efa mono`mono_jit_compile_method_inner(method=<unavailable>, target_domain=<unavailable>, opt=<unavailable>, error=0x00007fff5e247ae8) at mini.c:4365 [opt]
frame #11: 0x00000001019c484a mono`mono_jit_compile_method_with_opt(method=<unavailable>, opt=<unavailable>, jit_only=0, error=<unavailable>) at mini-runtime.c:1889 [opt]
frame #12: 0x0000000101a7466f mono`common_call_trampoline(regs=0x00007fff5e247bc8, code="H\x8b?H??\xa8H\x8b??8, m=<unavailable>, vt=0x0000000000000000, vtable_slot=0x0000000000000000, error=0x00007fff5e247ae8) at mini-trampolines.c:704 [opt]
frame #13: 0x0000000101a74189 mono`mono_magic_trampoline(regs=<unavailable>, code=<unavailable>, arg=<unavailable>, tramp=<unavailable>) at mini-trampolines.c:834 [opt]
frame #14: 0x0000000101e2939e
frame #15: 0x0000000109782fd5
frame #16: 0x0000000105a6c7b7
frame #17: 0x0000000105a6c480
frame #18: 0x0000000101ee100c
frame #19: 0x00000001019c8505 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=0x0000000000000000, params=<unavailable>, error=<unavailable>) at mini-runtime.c:2549 [opt]
frame #20: 0x0000000101bc9d48 mono`do_runtime_invoke(method=0x00007ffc78c0bb98, obj=0x0000000000000000, params=0x00007fff5e248630, exc=0x0000000000000000, error=0x00007fff5e248680) at object.c:2829 [opt]
frame #21: 0x0000000101bcd1bc mono`do_exec_main_checked [inlined] mono_runtime_invoke_checked(method=0x00007ffc78c0bb98, obj=<unavailable>, params=0x00000001020003e8, error=0x00007fff5e248680) at object.c:2983 [opt]
frame #22: 0x0000000101bcd17b mono`do_exec_main_checked(method=0x00007ffc78c0bb98, args=<unavailable>, error=0x00007fff5e248680) at object.c:4623 [opt]
frame #23: 0x0000000101a3734e mono`mono_jit_exec(domain=<unavailable>, assembly=<unavailable>, argc=1, argv=0x00007fff5e248ac0) at driver.g.c:1040 [opt]
frame #24: 0x0000000101a39757 mono`mono_main [inlined] main_thread_handler at driver.g.c:1109 [opt]
frame #25: 0x0000000101a39720 mono`mono_main(argc=<unavailable>, argv=<unavailable>) at driver.g.c:2247 [opt]
frame #26: 0x00000001019b959a mono`main [inlined] mono_main_with_options(argc=2, argc=2, argc=2, argv=0x00007fff5e248ab8, argv=0x00007fff5e248ab8, argv=0x00007fff5e248ab8) at main.c:46 [opt]
frame #27: 0x00000001019b9589 mono`main(argc=2, argv=0x00007fff5e248ab8) at main.c:339 [opt]
frame #28: 0x00000001019b8ef4 mono`start + 52
thread #2, name = 'SGen worker'
frame #0: 0x00007fffbe464bf2 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fffbe5507fa libsystem_pthread.dylib`_pthread_cond_wait + 712
frame #2: 0x0000000101c40b55 mono`thread_func [inlined] mono_os_cond_wait(mutex=0x0000000101d96848) at mono-os-mutex.h:173 [opt]
frame #3: 0x0000000101c40b46 mono`thread_func(thread_data=0x0000000101ed6108) at sgen-thread-pool.c:130 [opt]
frame #4: 0x00007fffbe54f93b libsystem_pthread.dylib`_pthread_body + 180
frame #5: 0x00007fffbe54f887 libsystem_pthread.dylib`_pthread_start + 286
frame #6: 0x00007fffbe54f08d libsystem_pthread.dylib`thread_start + 13
thread #3, name = 'Finalizer'
frame #0: 0x00007fffbe45d386 libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #1: 0x0000000101bc2693 mono`finalizer_thread [inlined] mono_os_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:91 [opt]
frame #2: 0x0000000101bc2688 mono`finalizer_thread [inlined] mono_coop_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-coop-semaphore.h:43 [opt]
frame #3: 0x0000000101bc2680 mono`finalizer_thread(unused=<unavailable>) at gc.c:866 [opt]
frame #4: 0x0000000101b95a6b mono`start_wrapper [inlined] start_wrapper_internal at threads.c:829 [opt]
frame #5: 0x0000000101b959d1 mono`start_wrapper(data=<unavailable>) at threads.c:891 [opt]
frame #6: 0x00007fffbe54f93b libsystem_pthread.dylib`_pthread_body + 180
frame #7: 0x00007fffbe54f887 libsystem_pthread.dylib`_pthread_start + 286
frame #8: 0x00007fffbe54f08d libsystem_pthread.dylib`thread_start + 13
thread #4
frame #0: 0x00007fffbe46544e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fffbe54f621 libsystem_pthread.dylib`_pthread_wqthread + 1426
frame #2: 0x00007fffbe54f07d libsystem_pthread.dylib`start_wqthread + 13
thread #5
frame #0: 0x00007fffbe46544e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fffbe54f48e libsystem_pthread.dylib`_pthread_wqthread + 1023
frame #2: 0x00007fffbe54f07d libsystem_pthread.dylib`start_wqthread + 13
thread #6
frame #0: 0x00007fffbe46544e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fffbe54f621 libsystem_pthread.dylib`_pthread_wqthread + 1426
frame #2: 0x00007fffbe54f07d libsystem_pthread.dylib`start_wqthread + 13
thread #7, name = 'Timer-Scheduler'
frame #0: 0x00007fffbe464bf2 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fffbe5507fa libsystem_pthread.dylib`_pthread_cond_wait + 712
frame #2: 0x0000000101bb8197 mono`mono_os_cond_timedwait(cond=0x00007ffc790032d8, mutex=0x00007ffc79003298, timeout_ms=499) at mono-os-mutex.h:216 [opt]
frame #3: 0x0000000101bb6d1d mono`mono_w32handle_timedwait_signal_handle [inlined] mono_w32handle_timedwait_signal_naked(cond=<unavailable>, mutex=<unavailable>, timeout=499, poll=0, alerted=<unavailable>) at w32handle.c:976 [opt]
frame #4: 0x0000000101bb6d15 mono`mono_w32handle_timedwait_signal_handle(poll=0, handle=<unavailable>, timeout=<unavailable>, alerted=<unavailable>) at w32handle.c:1091 [opt]
frame #5: 0x0000000101bb6bbb mono`mono_w32handle_wait_one(handle=0x0000000000000401, timeout=499, alertable=<unavailable>) at w32handle.c:1210 [opt]
frame #6: 0x0000000101bb6e9e mono`mono_w32handle_wait_multiple(handles=<unavailable>, nhandles=<unavailable>, waitall=<unavailable>, timeout=<unavailable>, alertable=<unavailable>) at w32handle.c:1244 [opt]
frame #7: 0x0000000101b905b3 mono`mono_wait_uninterrupted(thread=<unavailable>, numhandles=<unavailable>, handles=<unavailable>, waitall=<unavailable>, ms=<unavailable>, error=<unavailable>) at threads.c:1892 [opt]
frame #8: 0x0000000101b908d0 mono`ves_icall_System_Threading_WaitHandle_WaitOne_internal(handle=0x0000000000000401, ms=-1) at threads.c:2017 [opt]
frame #9: 0x0000000109acface
frame #10: 0x0000000103b14fe0 mscorlib.dll.dylib`System_Threading_WaitHandle_InternalWaitOne_System_Runtime_InteropServices_SafeHandle_long_bool_bool + 64
frame #11: 0x0000000103b14f8c mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_long_bool + 44
frame #12: 0x0000000103b14df3 mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_int_bool + 51
frame #13: 0x0000000103b14f1c mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_int + 28
frame #14: 0x0000000103b1b7f7 mscorlib.dll.dylib`System_Threading_Timer_Scheduler_SchedulerThread + 2423
frame #15: 0x0000000103b0e177 mscorlib.dll.dylib`System_Threading_ThreadHelper_ThreadStart_Context_object + 151
frame #16: 0x0000000103b0be11 mscorlib.dll.dylib`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 33
frame #17: 0x0000000103b0bda0 mscorlib.dll.dylib`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object + 80
frame #18: 0x0000000103b0e2bf mscorlib.dll.dylib`System_Threading_ThreadHelper_ThreadStart + 47
frame #19: 0x0000000101eebb81
frame #20: 0x00000001019c8505 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=0x00000001020524d8, params=<unavailable>, error=<unavailable>) at mini-runtime.c:2549 [opt]
frame #21: 0x0000000101bc9d48 mono`do_runtime_invoke(method=0x00007ffc791057b8, obj=0x00000001020524d8, params=0x000070000f0c7e58, exc=0x0000000000000000, error=0x000070000f0c7e60) at object.c:2829 [opt]
frame #22: 0x0000000101b95a9e mono`start_wrapper [inlined] start_wrapper_internal at threads.c:837 [opt]
frame #23: 0x0000000101b959d1 mono`start_wrapper(data=<unavailable>) at threads.c:891 [opt]
frame #24: 0x00007fffbe54f93b libsystem_pthread.dylib`_pthread_body + 180
frame #25: 0x00007fffbe54f887 libsystem_pthread.dylib`_pthread_start + 286
frame #26: 0x00007fffbe54f08d libsystem_pthread.dylib`thread_start + 13
(lldb) detach
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Process 4827 detached
(lldb) quit
Abort trap: 6