The Un-Official Proxomitron Forum
Proxomitron Reborn - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Forum Related (/forumdisplay.php?fid=37)
+--- Forum: Proxomitron Program (/forumdisplay.php?fid=4)
+--- Thread: Proxomitron Reborn (/showthread.php?tid=2331)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


Proxomitron Reborn - amy - May. 19, 2018 07:34 PM

I am pleased to announce that the project I started nearly a year ago, to decompile The Proxomitron completely, analyse and rebuild it, is nearing its end! Thumbs Up

I do not have Scott's source nor environment, but with careful analysis, was able to reproduce a very similar binary. (It is slightly smaller, probably because I am using a newer and more intelligent compiler.) In any case, I have used it daily for a week since the last bug I introduced was found, and haven't noticed any more, so...

Here is the first release of the rebuilt Proxomitron, "marketing version" 4.5R+, "true version" 4.5.1.0! Note that Scott's original 4.5J is either 4.5.0.0 or 4.5.0.4 depending on where you look.

This is only a testing release ("semiprivate preview"), so please report back any bugs you found (a way of easily reproducing them is much appreciated) or otherwise behavioural differences from 4.5J except for the following "known difference":

- OpenSSL support includes the latest version of my patches, so you will need to use OpenSSL 1.0.1. These DLLs should work.

The binary is a drop-in replacement for 4.5J so just put it alongside your existing one and try it out. This also means it should be relatively easy to switch between the two if you think you found something that's broken. As always, I disclaim responsibility for any damages etc., and you are advised to back up any configuration and such before testing!

A full release, with source, will come later. Smile!

Please test with latest updated version, since bugs introduced may have been fixed already due to someone else's previous report.

Updates:
4.5.1.1:
- Fix parsing of $KEYCHK()
4.5.1.2:
- Fix use-after-free when click OK button for remote proxy selector - the original code in 4.5J has this bug; it is only because of luck that it wasn't discovered all this time.
4.5.1.3:
- Fix use-after-free when click Cancel button for remote proxy selector
- Fix crash on exiting double-click-opened header filter
- Fix parsing of variable names
- Fix matching & operator
- Fix import from clipboard
- Fix parsing of $TYPE()
4.5.1.4:
- Fix adding blocklist items which may cause blocklist reallocation
- Fix blocklist reuse allocation
- Fix spurious mismatch on subexpressions
- Fix infinite loop in $STOP()
- Fix header filter ordering
- Fix parsing of patterns containing initial negation
- Fix matching subexpression into stack
- Fix writing to clipboard and (another) infinite loop in $STOP()
- Fix resizing of log window
- Fix inverted $TST condition
- Fix blocklist hashing
- Reset length indicator after expanding positional variables
- Fix using SSL with reused connections
4.5.1.5:
- Fix matching into variables
- Fix behaviour of edit control in listbox
- Fix reversed $AV/$AVQ
- Fix quote matching
- Fix condition for setting Host header correctly
4.5.1.6:
- Fix dynamic blocklist addition
- Fix $ADDLSTBOX() title and initial text
- Fix quadratically growing recent URLs list
- Fix matching of \w
- Fix buffer end check for matchPat012
- Fix adding header filters from dialog
- Fix blocklist parsing
4.5.1.7:
- Relayout About dialog with new branding
- Fix bug in header parsing
- Fix $WESC()
- Fix sorted external proxy lists

4.5.2.0:
- Fix opening local file URLs
- Fix buffer overflow in proxy test function
- Stabilise and refine header filter ordering - URL: filters are now applied first, and also show first in the list. They are sorted respectively alphabetically.
- Clarify file URLs for opening blocklists: URL commands must be enabled to do so, and if not, a warning message is shown.
- Fix date checking for If-Modified-Since in local file requests. Original code would always respond with "not modified", possibly causing caching problems with local file replacements.
- Fix Show URL in browser for https and add option to include scheme. When adding a URL to a blocklist, the menu option to open in browser was broken for https URLs. Now that has been fixed, and a checkbox added to allow you to include the scheme (https:// or http://) when adding to the list.
- Fix unintentional sign-extension in base-64 encoding. Non-ASCII basswords and such should now encode and decode correctly.
- Fix allow IP range comparison. This was accidentally introduced in the rebuild and not in 4.5j.
- Fix duplicate load and image handle leak when loading textures
- Fix tray icon tooltip (now it says Bypassed when... bypassed)
- Fix memory leak in $STOP()
- Fix memory leak in SSLeayShutdown()
- Fix handling of FEXTRA and FHCRC for gzip format
- Fix Allow for Session certificate dialog with multiple parallel connections. It will not continue asking the same host if you have multiple parallel connections and already said Allow for Session once.
- Fix erroneous check of return value when setting OpenSSL certificate callback
- Fix header filter count decrement race condition. No more erroneous "Filters In Use" with 0 active connections
- Fix saving and restoring window sizes (for multiple-monitor users)
- Fix multithreaded OpenSSL initialisation race condition crash
- Fix positioning of context menus for multiple-monitor systems
- Various cleanup/removal of dead-ends in code.

4.6.0.0:
- Add missing update of Host header after redirection
- Certificates generated with correct names
- $REM() pseudocommand
- Add HTTPS to local.ptron
- HTTPS configuration options for cipher suite selection and certificate error bypass
- Add details to certificate error dialog
- Add root certificate generation
4.6.0.1:
- Generate certificate serial number from hostname
- Always add SAN to certificates
- Fix buffer overflow in request parsing
- Fix adding manually entered blockfile entries
- Fix parsing of CONNECT URLs
- Fix listener startup message
4.6.0.2:
- Make generated certificates version 3.
4.6.0.3:
- Partially fix missing UI controls upon first press of Alt key
- Make generated certificates use same signature algorithm as root
- Fix timezone for certificate generator
- Make receive buffer size configurable
4.6.0.4:
- Use appropriate protocol for local.ptron resources
- Local filtering fixes (related to ports, local.ptron vs localhost/127.0.0.1, and HTTP vs HTTPS)
- Fix log window pressing ctrl disables arrows and pgup/pgdn
- Fix crash when copying long headers from log
- Remove default port from URLs
- Fix activation of Apply button when page filters opened upon doubleclick
4.6.0.5:
- Fix clearing of replacement stack
- Remove 2/4GB size limits on upload/download (the limit is now 8 or 16EB, sadly I do not have the time nor space to test that!)
- Allow multiple instances when run from different directories
- Allow more ciphers/protocols from SSL server side
- Fix certificate generation dialog on Win9x
- Fix crash when certificate generation fails
- Name new blocklist as file name instead of NewItem
- Add Ctrl+A to filter test dialog input/output editboxes
- Make filter testing request and URL configurable


RE: Proxomitron Reborn - chatterer - May. 19, 2018 10:02 PM

thank you so much, please make a little pack with ssl-dll's and test.cfg


RE: Proxomitron Reborn - thomasmo - May. 19, 2018 11:22 PM

Thank a lots!! I always hope it


RE: Proxomitron Reborn - thomasmo - May. 19, 2018 11:32 PM

(May. 19, 2018 07:34 PM)amy Wrote:  I am pleased to announce that the project I started nearly a year ago, to decompile The Proxomitron completely, analyse and rebuild it, is nearing its end! Thumbs Up

I do not have Scott's source nor environment, but with careful analysis, was able to reproduce a very similar binary. (It is slightly smaller, probably because I am using a newer and more intelligent compiler.) In any case, I have used it daily for a week since the last bug I introduced was found, and haven't noticed any more, so...

Here is the first release of the rebuilt Proxomitron, "marketing version" 4.5R+, "true version" 4.5.1.0! Note that Scott's original 4.5J is either 4.5.0.0 or 4.5.0.4 depending on where you look.

This is only a testing release ("semiprivate preview"), so please report back any bugs you found (a way of easily reproducing them is much appreciated) or otherwise behavioural differences from 4.5J except for the following "known difference":

- OpenSSL support includes the latest version of my patches, so you will need to use OpenSSL 1.0.1. These DLLs should work.

The binary is a drop-in replacement for 4.5J so just put it alongside your existing one and try it out. This also means it should be relatively easy to switch between the two if you think you found something that's broken. As always, I disclaim responsibility for any damages etc., and you are advised to back up any configuration and such before testing!

A full release, with source, will come later. Smile!

OS: Win10x64 1803

the program auto close itself after launch it


RE: Proxomitron Reborn - chatterer - May. 19, 2018 11:48 PM

searx.me:443
ERR_SSL_VERSION_OR_CIPHER_MISMATCH
win7 64bit, vivaldi 1.16.1183.3 (64-Bit)
--------------
it breaks the config at "Bypass any URL...":
[Image: AtELEW.png]
Original: BypassURL = $KEYCHK(^C^A^S)|(^local.ptron/sidki_h)$LST(Bypass-List)|$LST(Bypass-SSL)


RE: Proxomitron Reborn - thomasmo - May. 20, 2018 11:20 AM

Win10 x64 1803 get an error

[Image: Ub3X4Y1e_t.png]


RE: Proxomitron Reborn - amy - May. 20, 2018 04:35 PM

4.5.1.1 released, please retest.

Quote:searx.me:443
ERR_SSL_VERSION_OR_CIPHER_MISMATCH
win7 64bit, vivaldi 1.16.1183.3 (64-Bit)
I do not see that problem on that site. Have you tried the OpenSSL DLLs I linked to?
Quote:it breaks the config at "Bypass any URL...":
...
Original: BypassURL = $KEYCHK(^C^A^S)|(^local.ptron/sidki_h)$LST(Bypass-List)|$LST(Bypass-SSL)
Fixed parsing of $KEYCHK() function in 4.5.1.1.
Quote:Win10 x64 1803 get an error
That could be related to the bug I introduced in parsing $KEYCHK() function. Please retest with 4.5.1.1.


RE: Proxomitron Reborn - referrer - May. 20, 2018 09:21 PM

all filters didn't work normaly. no effect at all.

CTD:
open proxomitron -> headers -> choose a filter -> cancel
the proxo crash

same in 4511R.
win7 x86 + firefox 52.7.4


RE: Proxomitron Reborn - chatterer - May. 20, 2018 11:14 PM

(May. 20, 2018 04:35 PM)amy Wrote:  
Quote:searx.me:443
ERR_SSL_VERSION_OR_CIPHER_MISMATCH
win7 64bit, vivaldi 1.16.1183.3 (64-Bit)
I do not see that problem on that site. Have you tried the OpenSSL DLLs I linked to?
Quote:it breaks the config at "Bypass any URL...":
...
Original: BypassURL = $KEYCHK(^C^A^S)|(^local.ptron/sidki_h)$LST(Bypass-List)|$LST(Bypass-SSL)
Fixed parsing of $KEYCHK() function in 4.5.1.1.

Yes, this ssl-pack. The problem is "--cipher-suite-blacklist=0x009d,0x009c,0x003d,0x0035,0x003c,0x002f,0x000a,0x00c0,0x00ba,0x0084,0x0041,0x00fd,0x000a,0x002f,0x0035,0x003c,0x003d,0x0016,0xc0a1,0xc0a0,0xc012,0xc008,0x009c,0x009d"
---------------------------------------------------------------------
proxo.exe ignores the proxy
[Image: zdym8S.png]


RE: Proxomitron Reborn - amy - May. 21, 2018 12:39 AM

Quote:open proxomitron -> headers -> choose a filter -> cancel
the proxo crash
I could not reproduce this.

For those experiencing crashes, try to find the detail log in Event Viewer (it should look something like this but with proxo.exe) and either post message here or PM me if you don't want to make it public, otherwise it is very hard to determine where/why it is happening.
Quote:The problem is "--cipher-suite-blacklist=0x009d,0x009c,0x003d,0x0035,0x003c,0x002f,0x000a,0x00c0,0x00ba,0x0084,0x0041,0x00fd,0x000a,0x002f,0x0035,0x003c,0x003d,0x0016,0xc0a1,0xc0a0,0xc012,0xc008,0x009c,0x009d"
Not sure what you mean.
Quote:proxo.exe ignores the proxy
This one could be related to a use-after-free bug in Scott's original code which I uncovered, it also could cause a crash in the right circumstances. Basically, if a flag is set on an external proxy item it is freed, but then the code tries to change a different flag on it regardless. Will release 4.5.1.2 to fix this (note this is a change over the original code, but is necessary to prevent a possible crash.) But if I set up a proxy and select Use Remote Proxy, I can see that it uses it.


RE: Proxomitron Reborn - JJoe - May. 21, 2018 12:47 AM

4.5.1.1R
Using Opera portable on Win10 64bit.
Opera starts with switches, --ignore-certificate-errors --allow-insecure-localhost --disable-update --allow-running-insecure-content.
Proxomitron folder is new with patched 'proxomitron.exe', 'proxo.exe', and SSL related files.
Test config is Scott's default with SSL enabled, [attachment=1033] .
Test page is http://prxbx.com/forums/


'Proxo.exe' web page filters are not filtering by default.
Log window, page source, nor 'HTML Debug info' show hits.
However, filtering is enabled for 'HTML Debug info' after $FILTER(1)(^) is added to Bypass.

At prxbx.com/forums/
'Proxomitron.exe' shows hits for 'Kill pop-up windows', 'Suppress all JavaScript errors', 'Stop browser window resizing', 'Frame Jumper-Outer', 'Restore pop-ups after a page loads'.
After enabling 'HTML Debug info' and adding '$FILTER(1)(^)' to Bypass, 'Proxo.exe' shows hits for only 'Banner Blaster (limit text)'. These 'Banner Blaster (limit text)' hits are incorrect.

It looks like 'Proxo.exe' is failing to consider the '&' conditionals.

Code:
[Patterns]
Name = "test &"
Active = TRUE
Limit = 900
Match = "?+"
        "&"
        "HOLYCOW"

appears to match everything and maybe nothing.

<end> may not be working, since 'Restore pop-ups after a page loads' uses it.

Filter import via right click menu is broken.

Edit: Added "In the Test window"
Edit2: Same in 'HTML Debug info'. [s] tags added, text reverted to original.


RE: Proxomitron Reborn - referrer - May. 21, 2018 12:50 AM

(May. 21, 2018 12:39 AM)amy Wrote:  
Quote:open proxomitron -> headers -> choose a filter -> cancel
the proxo crash
I could not reproduce this.

For those experiencing crashes, try to find the detail log in Event Viewer (it should look something like this but with proxo.exe) and either post message here or PM me if you don't want to make it public, otherwise it is very hard to determine where/why it is happening.

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2018-05-21T00:44:39.000000000Z" />
<EventRecordID>6723</EventRecordID>
<Channel>Application</Channel>
<Computer>referrer</Computer>
<Security />
</System>
- <EventData>
<Data>proxo.exe</Data>
<Data>4.5.1.1</Data>
<Data>5b01c000</Data>
<Data>USER32.dll</Data>
<Data>6.1.7601.23594</Data>
<Data>58249e2b</Data>
<Data>c00000fd</Data>
<Data>0001c40a</Data>
<Data>d24</Data>
<Data>01d3f09cdfede39a</Data>
<Data>D:\Soft\ProxomitronR\proxo.exe</Data>
<Data>C:\Windows\system32\USER32.dll</Data>
<Data>23dc2943-5c90-11e8-8b03-6cf0497e4d62</Data>
</EventData>
</Event>


RE: Proxomitron Reborn - ProxRocks - May. 21, 2018 02:49 AM

awesome!
looking forward to testing it out...


RE: Proxomitron Reborn - chatterer - May. 21, 2018 08:25 AM

(May. 21, 2018 12:39 AM)amy Wrote:  
Quote:The problem is "--cipher-suite-blacklist=0x009d,0x009c,0x003d,0x0035,0x003c,0x002f,0x000a,0x00c0,0x00ba,0x0084,0x0041,0x00fd,0x000a,0x002f,0x0035,0x003c,0x003d,0x0016,0xc0a1,0xc0a0,0xc012,0xc008,0x009c,0x009d"
Not sure what you mean.
Quote:proxo.exe ignores the proxy
This one could be related to a use-after-free bug in Scott's original code which I uncovered, it also could cause a crash in the right circumstances. Basically, if a flag is set on an external proxy item it is freed, but then the code tries to change a different flag on it regardless. Will release 4.5.1.2 to fix this (note this is a change over the original code, but is necessary to prevent a possible crash.) But if I set up a proxy and select Use Remote Proxy, I can see that it uses it.

--cipher-suite-blacklist is a command line for my browser (here), i can disable weak/insecure cipher-suites ... look and test here: Qualys SSL Labs
-------------------------------------------------
proxo 4.5.1.2 has the same problem with "Use Remote Proxy" without Filter:
[Image: 6Pn6MF.png]
sometimes with and sometimes without the proxy


RE: Proxomitron Reborn - ProxRocks - May. 21, 2018 01:46 PM

(May. 21, 2018 08:25 AM)chatterer Wrote:  i can disable weak/insecure cipher-suites ...

sounds like a complete waste of time to me...
but i digress Big Teeth