Skip to content

s7 enumerate Read_SZL defined twice #15

@stze

Description

@stze

I've noticed that the same packet is defined twice in the s7-enumerate.nse script.

 -- setup the Read SZL information packet
  local Read_SZL = bin.pack("H", "0300002102f080320700000000000800080001120411440100ff09000400110001")
  -- setup the first SZL request (gather the basic hardware and version number)
  local first_SZL_Request = bin.pack("H", "0300002102f080320700000000000800080001120411440100ff09000400110001")
  -- setup the second SZL request

variable Read_SZL is the same as first_SZL_Request. Maybe the script code is easier to read with only one local variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions