Jump to content

AstroSkipper

Member
  • Posts

    4,565
  • Joined

  • Days Won

    462
  • Donations

    0.00 USD 
  • Country

    Germany

Everything posted by AstroSkipper

  1. Hi @cmalex! Here is the code of my batch to show you my implementation of the functionality described above: @ECHO OFF TITLE Start ProxHTTPSProxy cmdow "Start ProxHTTPSProxy" /HID START /MIN "Activate Proxy" ActivateProxy.bat CD.. START "ProxHTTPSProxyMII v1.5" ProxHTTPSProxy.exe CD PopMenu :LOOP tasklist | find /i "python37" >NUL 2>&1 IF ERRORLEVEL 1 ( GOTO CONTINUE ) ELSE ( sleep 10 GOTO LOOP ) :CONTINUE START /MIN "Deactivate Proxy" DeactivateProxy.bat EXIT As you can see, the activation and deactivation are done by the batch files ActivateProxy.bat and DeactivateProxy.bat. After hiding the program's window, my file activates the LAN settings, starts the proxy, performs a loop checking whether python37 is running or not, and deactivates the LAN settings on the proxy's exit. The file sleep.exe is an alternative to timeout.exe, which is not compatible with Windows XP, to perform a delay. I decided to use the program tasklist.exe inside the loop because it has an ERRRORLEVEL output I needed. If all this is done by using a higher programming language such as Python, it will presumably lead to less processor load and less background activity. If you want to take a look into my files, let me know! BTW, any improvements or optimizations of my code are welcome, of course! Cheers, AstroSkipper PS: Although I had my doubts, such functionality can actually be realised with pure batch programming. q.e.d.
  2. I find something. It must call "on_exit" function then window closed. I'll try to integrate it. import win32api import time def on_exit(signal_type): print('caught signal:', str(signal_type)) time.sleep(1) for i in range(1,5): print (6-i) time.sleep(1) win32api.SetConsoleCtrlHandler(on_exit, True) time.sleep(30) Hi @cmalex. Thanks for your reply! What functionality exactly do you want to integrate? You know I do not have any skills in the programming language Python. I am just a batch programmer If at all. As far as I can see, the code you posted is a loop in python. You try to catch the event of ProxHTTPSProxy's exit. Is that right? Anyway, it would be great if you integrated the functionality of activating the proxy's LAN settings on its start and deactivating on its exit. I already did that by creating a batch, compiled to an exe file, providing such functionality. But the background activity still bothers me. A more elegant solution is welcome at any time, of course! Cheers, AstroSkipper
  3. I performed a +1 and a thunbs up to support your call. I personally hate all unnecessary changes breaking websites which worked in the past. Just to be a bit "modern"!
  4. Hi to all! I optimized my batch file to reduce CPU load. After a lot of tests and adjusting the code, I compiled my bat file to an exe. The processor load is now ok i.e. normal. The background activity is less than before, but frankly, it still bothers me. It would be great if some more ideas or suggestions were offered to solve the problem described in my previous posts. Perhaps, there are also other solutions than a loop. Anyway, I was able to create an exe file with the functionality of @heinoganda's ProxHTTPSProxy_PSwitch.exe. It was not as easy as it might seem. Honestly, I am not such an elegant programmer, and the file ProxHTTPSProxy_PSwitch.exe I like more, but my file definitely works, and that's most important. I love simple and functional solutions. At the moment, though, I don't know wether I'll end up using it in my PopMenu. It's a decision about whether you like something or not. Cheers, AstroSkipper
  5. @jaclaz Thanks for your reply and your point of view! AutoIt is certainly worth a try. At the moment I am struggling with pure batch programming. And what can I say? I programmed a loop checking wether the proxy is running or not in a simple batch. When the proxy is closed manually, my batch goes on and deactivates the proxy's settings as it should be. Actually, I should be very happy, but the processor load on the one hand and the intense background activity on the other still bother me. Have to think about that in general, and of course, about possibilities of optimization! And I still need alternatives! Any ideas or suggestions are welcome! Cheers, AstroSkipper
  6. So, I've made a bit more progress. Microsoft's "start" command has a bug. It must not be called "start /wait /b" but "start /b /wait". That's great! I love Microsoft! Microsoft's documentation of this command is crap. Unfortunately, closing the ProxHTTPSProxy's status window in the corner right above leads to closing the complete process tree. This means that the rest of my batch file can't be executed anymore. However, if I use my task manager "ProcessHacker" and specifically close the file "ProxHTTPSProxy.bat", my batch works perfectly. Very strange! Any ideas or suggestions? Cheers, AstroSkipper PS: The next try will be a compiled version of my batch file. Don't know if this change anything!
  7. ProxHTTPSProxy is easy and great. Read my first post in this thread and my short tutorial from here: What I need now are further ideas, tips, suggestions or at its best, solutions for my question!
  8. I have heard a lot about AutoIt. I'll take a deeper look into it the next days. But, what about the processor load of such a loop using AutoIt?
  9. Hi @jaclaz, closing or killing a process can be done in different ways and is not the subject of my question. My question was I need ideas how to create one exe or bat file which activates the proxy ProxMII in the IE LAN settings, runs it, and deactivates its LAN settings when the proxy is closed manually by the user. Activating and running this proxy is no problem, but deactivating by closing the proxy is definitely a problem for me. Cheers, AstroSkipper
  10. One of my ideas was a loop using the command tasklist. Unfortunately, loops do have the disavantage of high processor load. That's correct! Alternatively, a monitoring of ProxHTTPSProxy.exe is possible if it exists (depends on the type of call), too.
  11. I already knew that Python has been abandoned for Windows XP. 2.7.18 is the last official version compatible with Windows XP. Thanks! Good to know.
  12. When it comes to security, then follwing rule is most important: the more recent the better. In @cmalex's latest release (220717) of ProxyMII, openssl has been updated to 3.0.5 and cryptography to 3.4.8. Nothing else matters for me. Cheers, AstroSkipper
  13. The latest versions of ProxyMII and 3proxy can be found in this post: Cheers, AstroSkipper
  14. Hi @cmalex. Any ideas how to create one exe or bat file which activates the proxy ProxMII in the IE LAN settings, runs it, and deactivates its LAN settings when the proxy is closed manually by the user? Activating and running this proxy, no problem, but deactivating by closing the proxy is definitely a problem for me. Detailed description of my problem can be found here: Cheers, AstroSkipper
  15. @cmalex created PROXYMII by using Python 3.7.1. If you have detailed questions about the source code or how this proxy was programmed, you have to address your request to @cmalex. I am not a Python programmer and can't assess which Python version is more suitable or which features they differ in. . Anyway, ProxyMII is absolutely great, and honestly, I don't really know what your statement is supposed to tell us. For me, it doesn't really matter whether ProxyMII was programmed with Python 2.7 or Python 3.7.1. I am glad that we finally have a TLS 1.3 proxy that works perfectly. Cheers, AstroSkipper
  16. Compiling an exe from a bat file has a few advantages. You can assign a program icon, facilitate the control of the cmd window, and add further files, all in one exe. I did that in my ProxHTTPSProxy's PopMenu, too. ProxHTTPSProxy.exe is just a small program to launch the proxy, presumably a compiled version of the batch file ProxHTTPSProxy.bat. In Windows XP, I can't examine this file due to the need of .NET Framework 4.6 which is not supported. That should be done on Windows 7 or higher. PS: @Dave-H Maybe, the reason @cmalex created ProxHTTPSProxy.exe is that all users of ProxHTTPSProxy usually start the proxy using this exe, and would be confused if it wasn't there.
  17. Hi @cmalex and all interested users of ProxHTTPSProxy! At the moment, I am working on a full implementation of @cmalex's ProxyMII in my PopMenu. As I stated several times, I am not a Python programmer, but rather a batch programmer. The most is working fine, so far. I wrote small programs to activate or deactivate the proxy in the IE LAN settings. No problem at all. I was also able to create two other programs, one of which activates the proxy in the IE LAN settings and runs the proxy, the other closes the proxy and deactivates the proxy in the IE LAN settings, in both cases automatically. Works! But there is one problem. The launcher of ProxMII does not activate or deactivate the proxy in the IE LAN settings by itself. @heinoganda provided the executable ProxHTTPSProxy_PSwitch.exe which activates the proxy in the IE LAN settings, runs the proxy, and, closing the proxy manually, leads to its deactivation in the IE LAN settings automatically. Unfortunately, such an executable does not exist in the archive of @cmalex's ProxyMII. This means closing the proxy manually does not deactivate its settings in the IE LAN settings. Same problem when starting the proxy manually. @heinoganda created ProxHTTPSProxy_PSwitch.exe as a SFX archive which performs the activation or deactivation by using his batch file ProxySwitch.bat. You see all is a bit complicated, and once @Dave-H mentioned @heinoganda was an one man band without other contributors. Therefore, we'll presumably never know how he created the ProxHTTPSProxy_PSwitch.exe. Of course, it's not necessary to have such a file, but it is really nice to see that the proxy is activated or deactivated in the IE LAN settings when starting or closing the proxy. I examined the file ProxHTTPSProxy_PSwitch.exe, I wrote several batch files to get this functionality. Unfortunately, without any success.I tried the commands "start /wait" and "call", but it doesn't work. So, here is my question to all having knowledge in batch programming. What kind of ways do exist to start an executable in a batch file, and after closing it manually, to perform the next tasks in this batch? As I already said, the command start /wait does not work in the case of this proxy. It leads to ^C interruption and the batch can't perform the next tasks. I need some suggestions to solve the problem or the confirmation that this can't be solved using batch programming. I think the problem is that there is no compiled main program. The proxy is called by the program python37.exe, loading a py file. This is the existing command to start the proxy: python\python37 "%~dp0ProxHTTPSProxy.py", contained in the file ProxHTTPSProxy.bat. There is still an alternative file to start the proxy named ProxHTTPSProxy.exe. Thanks in advance! Cheers, AstroSkipper
  18. Thanks for your information! @cmalex already mentioned that his release works on a CPU with only SSE instructions set, without POSReady 2009 updates, and requires Microsoft Visual C++ 2015 Redistributable. But, good to have a confirmation. Thanks again! Cheers, AstroSkipper
  19. Yeah, that's correct. Same settings as it was before. Wether localhost or 127.0.0.1, doesn't matter. BTW, originally, @heinoganda set the proxy by its batch file ProxySwitch.bat to the IP address 127.0.0.1. But as I said, it doesn't matter actually.
  20. Hi @cmalex, first, a big thanks for this release of ProxyMII once again! It is absolutely awesome! And furthermore, you are a great win for our forum. Your TLS 1.3 proxy is an important element in future-proofing our beloved OS Windows XP. Establishing a TLS 1.3 connection in Windows XP system-wide or locally, is and will be very important, especially in the future times. Therefore, one cannot thank you enough! And this simply has to be said. Just a few days ago, I really didn't believe that my call here could be successful one day. You know "Dirty Harry"? Make my day? You made my day! Ignore the guy far right! This one is not ticking right! Actually, it has to be a 10, too! But he seems to have a life of his own. To let WindowsXP live as long as possible can only be done by sharing our knowledge and skills! Helping and supporting each other has to be the main idea! Kindest regards, AstroSkipper (The "flying guy" is you! Hope you don't get sick! )
  21. Hi @mina7601, thanks for your reply and for addressing your points! And what should I say? I don't understand it, either! ( , "either" is no problem anymore. Sorry, I had to say that!) A "breaking" of programs is very unspecific and meaningless. I am completely with you. And as I already said to @Dave-H, you really can't go off-topic in this thread anymore. Frankly, I am so happy about our new proxies, so, whether one is on-topic or off-topic here, doesn't matter for me. You know I usually don't like to go off-topic. Cheers, AstroSkipper
  22. Hi @cmalex, thank you so much for your new proxy releases! I tested your proxy ProxMII again, and it works perfectly. Here is a new screenshot to demonstrate a successful connection to Qualys SSL Labs, established by the proxy ProxyMII from 17-07-2022, using the Internet Explorer 8: The proxy settings are shown on the left side as described in my short tutorial. Cheers, AstroSkipper
  23. Each computer I'd have to install Windows XP Professional SP3 to would get all POSReady updates, unless it owned a CPU with SSE instructions set only. In such a case only the POSReady updates until July of 2018. BTW, this @XPerceniol guy is a good one! Therefore, I plead for acquittal. Neither electric chair nor jail!
  24. In this thread, you really can't go off-topic anymore. Anyway, I agree with you, wholeheartedly.
  25. I never had any problems with the POSReady updates. Therefore, I can't confirm your observations. PS: Maybe, your garage computer possesses a CPU with SSE instructions set only. The POSReady updates weren't compatible with such systems since August of 2018.
×
×
  • Create New...