what you don't know can hurt you
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:

July 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    27 Files
  • 2
    Jul 2nd
    10 Files
  • 3
    Jul 3rd
    35 Files
  • 4
    Jul 4th
    27 Files
  • 5
    Jul 5th
    18 Files
  • 6
    Jul 6th
    0 Files
  • 7
    Jul 7th
    0 Files
  • 8
    Jul 8th
    28 Files
  • 9
    Jul 9th
    44 Files
  • 10
    Jul 10th
    24 Files
  • 11
    Jul 11th
    25 Files
  • 12
    Jul 12th
    11 Files
  • 13
    Jul 13th
    0 Files
  • 14
    Jul 14th
    0 Files
  • 15
    Jul 15th
    0 Files
  • 16
    Jul 16th
    0 Files
  • 17
    Jul 17th
    0 Files
  • 18
    Jul 18th
    0 Files
  • 19
    Jul 19th
    0 Files
  • 20
    Jul 20th
    0 Files
  • 21
    Jul 21st
    0 Files
  • 22
    Jul 22nd
    0 Files
  • 23
    Jul 23rd
    0 Files
  • 24
    Jul 24th
    0 Files
  • 25
    Jul 25th
    0 Files
  • 26
    Jul 26th
    0 Files
  • 27
    Jul 27th
    0 Files
  • 28
    Jul 28th
    0 Files
  • 29
    Jul 29th
    0 Files
  • 30
    Jul 30th
    0 Files
  • 31
    Jul 31st
    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