Author Topic: Bomz new topic.  (Read 13059 times)

TouEnMasm

  • Member
  • *****
  • Posts: 1804
    • EditMasm
Re: Bomz new topic.
« Reply #15 on: August 12, 2021, 04:12:41 PM »
Post your code that will be better than a little piece who can be only a puzzlle with missing pieces.
Fa is a musical note to play with CL

bomz

  • Member
  • **
  • Posts: 122
Re: Bomz new topic.
« Reply #16 on: August 12, 2021, 04:24:01 PM »
now it looks like puzzle which I can't join

inside httpanalyzer I find mozilla dll. perhaps it is sertificates
http://booomz.000webhostapp.com/pictures/Project003.gif

TouEnMasm

  • Member
  • *****
  • Posts: 1804
    • EditMasm
Re: Bomz new topic.
« Reply #17 on: August 12, 2021, 05:23:30 PM »
   jmp @F
   form      db "EAX: %u", 0
   @@:

 Inclusion of data in code segment is no more supported.
.data
   form      db "EAX: %u", 0                      ;is greatly better and avoid problems

There is further declarations of this chain in code and parameters for memory must be revised.Use heap not global and give a correct size to the heap buffer.
Fa is a musical note to play with CL

bomz

  • Member
  • **
  • Posts: 122
Re: Bomz new topic.
« Reply #18 on: August 12, 2021, 05:42:57 PM »
I need only check how code work it more convinient when edit data too
code allow ro read not write
Quote
Pointer to a buffer that receives the option setting. Strings returned by InternetQueryOption are globally allocated, so the calling application must free them when it is finished using them.
https://cpp.hotexamples.com/examples/-/-/InternetQueryOption/cpp-internetqueryoption-function-examples.html

jj2007

  • Member
  • *****
  • Posts: 12944
  • Assembler is fun ;-)
    • MasmBasic
Re: Bomz new topic.
« Reply #19 on: August 12, 2021, 05:50:43 PM »
Inclusion of data in code segment is no more supported.

No more supported by whom? You?

Code: [Select]
include \Masm32\MasmBasic\Res\JBasic.inc ; ## console demo, builds in 32- or 64-bit mode with UAsm, ML, AsmC ##
.code
hi db "Hello, this is still supported", 33, 0
Init ; OPT_64 1 ; put 0 for 32 bit, 1 for 64 bit assembly
  Cls
  PrintLine Chr$("This program was assembled with ", @AsmUsed$(1), " in ", jbit$, "-bit format.")
  Inkey addr hi
EndOfCode
Code: [Select]
This program was assembled with ml64 in 64-bit format.
Hello, this is still supported!

TouEnMasm

  • Member
  • *****
  • Posts: 1804
    • EditMasm
Re: Bomz new topic.
« Reply #20 on: August 12, 2021, 06:13:43 PM »
JJ,
Search msdn if you know where it is and don't use a 386  and msdos to made the test,it is not an very old feature.Windbg is an enogh proof for me.(subject close)

To use searchHttp there is also need of a debugger to view errors like that.
Quote
onecore\com\combase\objact\dllcache.cxx(2127)\combase.dll!76AF8156: (caller: 76A4B4D5) ReturnHr(8) tid(2680) 8007007E Le module spécifié est introuvable.
onecore\com\combase\objact\dllcache.cxx(4671)\combase.dll!76A4B53E: (caller: 76A47D97) ReturnHr(9) tid(2680) 8007007E Le module spécifié est introuvable.
onecore\com\combase\objact\dllcache.cxx(4803)\combase.dll!76AFDE48: (caller: 76A47D97) ReturnHr(10) tid(2680) 8007007E Le module spécifié est introuvable.

Intercept those type of errors due to a bad Useragent is a problem to solve.

Fa is a musical note to play with CL

bomz

  • Member
  • **
  • Posts: 122
Re: Bomz new topic.
« Reply #21 on: August 12, 2021, 11:03:44 PM »
when I need command not support .386 I change it. I use only .386 compatible commands

Selecting a client certificate

TouEnMasm

  • Member
  • *****
  • Posts: 1804
    • EditMasm
Re: Bomz new topic.
« Reply #22 on: August 13, 2021, 12:29:51 AM »
Try this one.You can change the options to see what happen.The exclude.txt allow to exclude some site.
The Dialog box allow to made search with various parametre.
Follow the upper link for source code
I have made a liitle modify,in async_search.inc ligne 72 put in comment ;Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36

I have tested uasm,jwasm,asmc and there is only asmc who had find the problem.Seems there is no more bug.
First time you use it,you can just clic OK on the search dialog box to see what happend.

Fa is a musical note to play with CL

bomz

  • Member
  • **
  • Posts: 122
Re: Bomz new topic.
« Reply #23 on: August 13, 2021, 02:16:27 AM »
the same story most problem site www.livenewsnow.com download 1091 bytes with HTTP Analyzer 191000bytes

pay attention to this parametre HTTP/HTTPS
   invoke InternetConnect, hSession, addr Server, INTERNET_DEFAULT_HTTPS_PORT, NULL, NULL, INTERNET_SERVICE_HTTP, 0, 0
   ;invoke InternetConnect, hSession, addr Server, INTERNET_DEFAULT_HTTP_PORT, NULL, NULL, INTERNET_SERVICE_HTTP, 0, 0

pay attention to this parametre if NO name FName = NULL
invoke HttpOpenRequest, hConnect, NULL, addr FName, NULL, NULL, NULL, INTERNET_FLAG_SECURE,0

http://booomz.000webhostapp.com/pictures/Project004.gif

TouEnMasm

  • Member
  • *****
  • Posts: 1804
    • EditMasm
Re: Bomz new topic.
« Reply #24 on: August 13, 2021, 02:39:28 AM »

In the resource dialog "resource"  you must keep the text until the = and modify only after the =
It is the question searched,no question no answer
This explain the few data received
Fa is a musical note to play with CL

bomz

  • Member
  • **
  • Posts: 122
Re: Bomz new topic.
« Reply #25 on: August 13, 2021, 02:45:07 AM »
Total Receive 1002 only header
with http analyzer Total Data Received 195018 - full page after redirect to https

TouEnMasm

  • Member
  • *****
  • Posts: 1804
    • EditMasm
Re: Bomz new topic.
« Reply #26 on: August 13, 2021, 03:34:04 AM »
La suite en images


Fa is a musical note to play with CL

bomz

  • Member
  • **
  • Posts: 122
Re: Bomz new topic.
« Reply #27 on: August 13, 2021, 04:30:23 AM »
I don't say it not work at all. It not load "problem" sites not compatible with IE

jj2007

  • Member
  • *****
  • Posts: 12944
  • Assembler is fun ;-)
    • MasmBasic
Re: Bomz new topic.
« Reply #28 on: August 13, 2021, 10:52:18 AM »
JJ,
Search msdn if you know where it is and don't use a 386  and msdos

I posted 64-bit code above, Yves, and it runs fine on Win7-64, which demonstrates that you are wrong.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 9739
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Bomz new topic.
« Reply #29 on: August 13, 2021, 12:22:52 PM »
Data in the code section may be politically incorrect but it works just fine. As long as you don't try and execute it as code. If you have some reason to want to put data in the code section, either put it where it cannot be run as code OR jump over the block of data.

Its easy enough to write DB data blocks and call them by their address.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy: