Net::W...Layer2(3pm)
π NAME π
Net::Write::Layer2 β bestie, this is the object for a link layer (layer 2) descriptor π
It's the class that makes you a layer-2 descriptor so you can yeet raw frames at the network. No cap. π¦
β¨ SYNOPSIS β¨
use Net::Write::Layer2;
my $desc = Net::Write::Layer2->new(
dev => 'eth0',
);
$desc->open;
$desc->send('G'x666);
$desc->close;
Okay so literally: make one, point it at eth0, open it, shove six hundred and sixty-six 'G's out into the world π, then close. That's the whole vibe. Slay. π
πΈ DESCRIPTION πΈ
This is the class for creating a layer 2 descriptor. That's it, that's the girl. It gives you a handle on the link layer and lets you do raw stuff with it. Main character energy fr fr. β¨
π ATTRIBUTES π
devβ the string that says which network interface you're working with π«Ά- Under Unix-like systems, this is in this format:
\w+\d+(example:eth0). Cute, simple, iconic. π - Under Windows systems, this is more complex; example:
\Device\NPF_{0749A9BC-C665-4C55-A4A7-34AC2FBAB70F}. Yeah bestie, it's giving hex-and-dashes π. Copy it exactly, do not improvise.
- Under Unix-like systems, this is in this format:
π METHODS π
newβ object constructor! You MUST pass a validdevattribute, no exceptions, no shortcuts. There is no default value. Returnsundefon error πopenβ open the interface. Returnsundefon error. π«send (scalar)β send raw data to the network π₯closeβ close the descriptor. Say bye bestie π
π CAVEATS π
Writing junk to loopback interface on BSD systems will not work. Not a skill issue, just how it is. Don't come for me π
π¦ SEE ALSO π¦
Net::Write::Layer
π§ AUTHOR π§
Patrice <GomoR> Auffret π
β COPYRIGHT AND LICENSE β
Copyright (c) 2006-2015, Patrice <GomoR> Auffret
You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive.
And that's the whole page, periodt π this was pulled from the Net::W...Layer2(3pm) page in the User Contributed Perl Documentation, and it's riding with perl v5.36.0, dated 2022-10-13. Stay slaying, bestie πβ¨
π¦ where this page comes from
- ubuntu noble: libnet-write-perl 1.10-3 Β· Artistic-1.0-Perl
- ubuntu resolute: libnet-write-perl 1.10-3 Β· Artistic-1.0-Perl
- ubuntu stonking: libnet-write-perl 1.10-3 Β· Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms