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 :) )
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|