- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need to kill midaemon with only ftp access
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2003 04:03 AM
02-14-2003 04:03 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2003 04:18 AM
02-14-2003 04:18 AM
Re: Need to kill midaemon with only ftp access
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2003 04:20 AM
02-14-2003 04:20 AM
Re: Need to kill midaemon with only ftp access
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2003 04:28 AM
02-14-2003 04:28 AM
Re: Need to kill midaemon with only ftp access
Probably you can rename some scripts which are used for cron jobs but regarding the killing of process NO.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2003 05:14 AM
02-14-2003 05:14 AM
SolutionYou may try to create a trojan script like this:
#!/usr/bin/sh
kill -9 $(UNIX95=1 ps -o pid= -C midaemon)
exec /sbin/ls $@
The ftp to the system, login as root and put the file to /usr/bin/ls.
ftp> put trojanls /usr/bin/ls
200 PORT command successful.
The type "ls" and the script should be executed.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2003 05:23 AM
02-14-2003 05:23 AM
Re: Need to kill midaemon with only ftp access
Can you not get the co-operation of the server's administrator to set up a job that looks for a file that you can ftp across. The job could then kill the process for you.
rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2003 06:11 AM
02-14-2003 06:11 AM
Re: Need to kill midaemon with only ftp access
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2003 06:16 AM
02-14-2003 06:16 AM
Re: Need to kill midaemon with only ftp access
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2003 06:30 AM
02-14-2003 06:30 AM
Re: Need to kill midaemon with only ftp access
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2003 02:44 PM
02-16-2003 02:44 PM
Re: Need to kill midaemon with only ftp access
QUOTE SITE EXEC "kill -9 $(UNIX95=1 ps -o pid= -C midaemon)"
Most FTP servers allow the use of the SITE EXEC command that will allow you to run commands on the FTP server.
You need to login as root to have permission to kill the daemon otherwise the remote command will run with the permission you login as.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2003 04:44 PM
02-16-2003 04:44 PM
Re: Need to kill midaemon with only ftp access
Note to children: Trying this stuff on systems you don't own is a Federal crime in most countries, definitely the US.
Note to sysadmins: allowing root ftp access on any system is a REALLY BAD ideal. put root in /etc/ftpaccess and your system will take a giant leap in security just from this step.
Note to forums from grandpa: This site is visible to the public internet and I personally would have made some of those posts offline. Not being an accomplished hacker I can only say I feel some pretty dangerous toys are in this thread.
I am wondering sir, what is the plan to bring this system to the point were it can be managed via normal means?
I suppose you could ftp in secure shell and use the techniques above to swintall it?
I'm wondering why you can not telnet. Is /var maybe full? Could you have stuff stored in the /var folder hidden by the mount of /var
If /var is not mounted, and you copy files in and after you mount it you can't see them. You find this out by booting into single user mode cd /var and doing an ls -la Anything you see should not be there.
As to how to get into single user mode without console acess? Ask A. Clay or Bill Hassell about that, I have no idea.
I suppose with ftp root access you can clear /var. You should clear any Core OS systems that are to close to full like /tmp or /var /opt and /usr do not matter so much.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2003 02:22 AM
02-17-2003 02:22 AM
Re: Need to kill midaemon with only ftp access
>Note to forums from grandpa:
>This site is visible to the
>public internet and I personally
>would have made some of those
>posts offline. Not being an
>accomplished hacker I can only
>say I feel some pretty dangerous
>toys are in this thread.
I don't see the problem here... the "hack" only works if you can login via ftp as root. However, if your hacker is able to do that then it's too late anyway.
Grandma's conclusion... allow root access only via ssh.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2003 03:52 AM
02-17-2003 03:52 AM