News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Line too Long?

Started by AgentSmithers, May 27, 2009, 05:06:25 PM

Previous topic - Next topic

AgentSmithers

        .486
        .model flat, stdcall
        option casemap :none

          include \masm32\include\windows.inc

          include \masm32\include\user32.inc
          include \masm32\include\kernel32.inc
          include \masm32\include\masm32.inc

          includelib \masm32\lib\user32.lib
          includelib \masm32\lib\kernel32.lib
          includelib \masm32\lib\masm32.lib



                .data
                    Var db 16 dup (" "); Set 16 Bytes of value "0"

                    CRLF db 13,10

                    Number dd 1

                    AAAuth   db "GET / HTTP/1.0",13,10,
                                "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, ",
                                "application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*",13,10,
                                "Content-Type: application/x-www-form-urlencoded",13,10,
                                "Connection: keep-alive",13,10,
                                "Host: 192.168.1.1",13,10,
                                "Authorization: Basic "

                    base64_alphabet db "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 + / ="
                    ; ASCII -> Base64 mapping table
                    base64table db 43 dup (255) base64table db 43 dup (255)
                    db 62,255,255,255,63,52,53,54,55,56,57,58,59,60,61,255 db 62,255,255,255,63,52,53,54,55,56,57,58,59,60,61,255
                    db 255,255,0,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13 db 255,255,0,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13
                    db 14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255 db 14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255
                    db 255,255,26,27,28,29,30,31,32,33,34,35,36,37,38 db 255,255,26,27,28,29,30,31,32,33,34,35,36,37,38
                    db 39,40,41,42,43,44,45,46,47,48,49,50,51 db 39,40,41,42,43,44,45,46,47,48,49,50,51
                    db 132 dup (255) db 132 dup (255)


                .data?


On line AAAuth DB its going me Line to long? How to get around this?
-Agent

Vortex

Split that long line to shorter ones :

AAAuth  db  "GET / HTTP/1.0",13,10
        db  "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, "
        db  "application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*",13,10
        db  "Content-Type: application/x-www-form-urlencoded",13,10
        db  "Connection: keep-alive",13,10
        db  "Host: 192.168.1.1",13,10
        db  "Authorization: Basic "

AgentSmithers

Ah So I did need DB all the way down, I knew it was a Syntax thing, Thanks!