Hello monks. I'm currently creating a web based tool via CGI/html but am having real problems when trying to run remote DOS commands on the web server, via the web page. Its when running things like net.exe, sc.exe etc commands that I can't figure out how to run them. I'm guessing its because I'm trying to run them as 'nobody' but I can run a 'whoami' command remotely and its showing as the account that I'm logged onto my desktop with. I'm guessing there might be a way of adding this account into a group on the web server but I can't find which group will give me sufficient access to run the commands. HELP! PS - I need to figure out how to do this or it'll mean me learning how to do it all via .ASP and IIS - I'd rather use perl!

In reply to CGI/Remote Commands on Web Servers by ilikeperl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.