Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Finding what is loading

by swiftone (Curate)
on Sep 21, 2001 at 22:08 UTC ( [id://113955]=perlquestion: print w/replies, xml ) Need Help??

swiftone has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to deobfuscate a web script written by another (no longer available), and I've uncovered a tangle.

The script has a use KS; statement, and later calls a subroutine within that module.

However, the code for that module appears to be nearly unmodified starting module code from h2xs. (documentation stub, an AUTOLOAD routine, and exporting a few variables that aren't set)

The script works however, so the module must be working. I just can't find where it works it's magic.

Any ideas? (I have no experience with the perl debugger, so if that's my fallback a few pointers on which parts of the documentation to focus on to answer this would be appreciated.)

Replies are listed 'Best First'.
Re: Finding what is loading
by Moonie (Friar) on Sep 21, 2001 at 22:44 UTC
    There are a few modules out there that may help you. Take a look at these:
    - Moon
Re: Finding what is loading
by perrin (Chancellor) on Sep 21, 2001 at 22:36 UTC
    Is there an .so for that module? It may be written in XS.

      FYI, this is indicated by require DynaLoader (or use DynaLoader) and a call to bootstrap inside the *.pm file.

              - tye (but my friends call me "Tye")
Re: Finding what is loading
by runrig (Abbot) on Sep 21, 2001 at 22:35 UTC
    I'm unclear. You're saying that you're sure a subroutine is in that module, but you can't find that sub anywhere in the module, and you're sure you're looking at the right source for the module?

    How do you know the sub is from that module?
    How is the sub being called? Is it exported? How?
    perldoc perldebug. 'n' and 's' your way through the program.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://113955]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-19 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found