exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

as400nc.txt

as400nc.txt
Posted Apr 14, 2005
Authored by Shalom Carmel

A reverse shell can be obtained using netcat on an AS/400 with PASE installed.

tags | advisory, shell
SHA-256 | 9e78ffcdd03fc9efdee0e3b370eea2d426fcdbb31edeaa8a406ac70e72a9221d

as400nc.txt

Change Mirror Download
Reverse shell using netcat on AS/400

Overview
------------
Netcat, dubbed the TCP/IP "Swiss Army knife", is a simple Unix utility
which reads and writes data across network connections,
using TCP or UDP protocol. An indispensable tool, netcat stars in network
hacking manuals as one of the most versatile and powerful utilities.

A netcat executable file compiled on AIX can be successfully deployed
on some AS/400 servers.

Details
----------
The AS/400 operating system has an optional feature called
Portable Application Solutions Environment, or in short PASE.

PASE provides an integrated run-time environment for AIX applications
running on AS/400. For many applications, this means that all you have
to do is place the AIX executables in an AS/400 folder, chmod it to
executable
permissions, and run it via the AS/400 PASE shell.
In particular, the netcat utility can be successfully executed, both as
client and as server, including the -e option for reverse shell execution.
No special AS/400 privileges are required for the installation and execution
of netcat, except for the ability to place a file via FTP,
and the ability to CALL a program.

An AS/400 user with some very basic Unix knowledge
can now download netcat to the AS400
by the built-in FTP client, and start using it right away.


Vulnerable systems:
-----------------------
AS/400 servers with PASE installed.
How do you know if your server has PASE? The easiest is to issue this
command:

CALL PGM(QP2TERM)

This program is the PASE shell.
If you get a screen with a command line and with "/QOpenSys/usr/bin/-sh "
on the top, then you have PASE installed.
Alternatively, look for licensed program 5722SS1 option 33.


Workaround:
----------------
Secure the access to PASE: limit permissions to programs QP2TERM,
QP2SHELL, and QP2SHELL2. If you have audit turned on, audit their usage.
In your firewall, add rules restricting unnecessary outgoing connections
from your AS/400 server to the Internet.

References
-------------
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/rzalf/rzalfintro.htm

For full details and examples of reverse shells please read the PDF file
found at
http://www.venera.com/downloads.htm

Shalom Carmel



Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close