Hi perlmonkers!
I spent the last 2 years studying computer security and related topics and since my first day of studies, I used perl as my first programming language and I (finally) would like to update an old library which can be great for penetration testing purposes: I am talking about the Net::Lorcon2 library, I started yesterday the rewriting and now, after 10-12 hours of developing, I encountered the first (persistent) problem: the XS code is extremely flawed, every time that I call the "lorcon_create" function (which accept 2 parameters, the interface and the driver) it says:
Net::Lorcon2::lorcon_create: driver is not a reference
so, instead of calling:
use Net::Lorcon2 qw(:subs);
my $driver = "iwlwifi";
my $if = "wlo1";
print Net::Lorcon2::lorcon_create($if, $driver);
I called
use Net::Lorcon2 qw(:subs);
my $driver = "iwlwifi";
my $if = "wlo1";
print Net::Lorcon2::lorcon_create($if, \$driver);
obtaining only a Segmentation fault.
I put the entirely library code here: https://easyupload.io/o120mv
Hope in some helps!
thanks.
(p.s this is just a naif version of the library, I am using it only for the XS debug, do the normal "make" and "make install", do not try to use tests, they are still WIP :) )
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.