Skip to content

Help Creating Custom Layer #718

@Crossfire55555

Description

@Crossfire55555

Hello again,

I am trying to make my own custom layer so I went into my python dist-packages/scapy/layers and I added ttp.py. I then put "from scapy.all import *" at the top and I made my class.
image

I have my enums in a separate class named TTPTools(object):
I saved the file and ran scapy and my custom layer is not recognized. The tutorial says that it should be accessible after this point.

I know my path is correct. As a further check I put an open bracket in ttp.py and when I run scapy it tells me that it cannot import ttp.py.

I am running 2.3.3.dev511

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