Security :: Fork Bombs Can Also Very Easily Be Standalone Shell Scripts?

Dec 12, 2010

Fork bombs can also very easily be standalone shell scripts? https://bugs.launchpad.net/ubuntu/+s...sh/+bug/689176

View 4 Replies


ADVERTISEMENT

Ubuntu Security :: Prevent Fork Bombs From Bringing The System To Grinding Halt?

Mar 18, 2011

So I am basically just curious about this, but is there a way to prevent fork bombs from bringing the system to grinding halt in Ubuntu, without setting hard limits on the resources available to users? I read about fork bombs on Wikipedia, and being the masochist I am (and not having any unsaved work), I tried entering those 13 characters into terminal. Wow. I have never seen a computer freeze up so fast.What really peaked my curiosity is that the same fork bomb has almost no effect on the performance of Mac OSX (10.6). I know that one can limit the availability of resources to specific users. Is that essentially what Snow Leopard is doing?

View 9 Replies View Related

Security :: Setup Postfix On A Standalone Server Connected Directly To The Internet?

Jul 1, 2010

venturing into unfamiliar territory so I'm hoping someone can help me and make things a little more understandable for me. I have setup Postfix on a standalone server connected directly to the internet. I have got inbound and outbound email working for the most part, but I am worried about security.My fear is that if I leave port 25 open to the outside world spammers will find this and start relaying mail through it and eventually blacklisting the IP attached to this box.

For now, I am hosting mail for a single domain and single user (me) with a few aliases. I plan on expanding to IMAP and SMTP access from the outside at some point, but for now I've been using Mutt in a shell and it's fine for my needs for now.

Here are my current Postfix settings:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases

[code]....

View 3 Replies View Related

Ubuntu Security :: KeePassX Files Easily Readable With Text Editor

May 19, 2011

I have noticed and this now worries me, if I export a KeePassX xml file then open it with a text editor I can see all my �private� details.Just tested it on my old desktop with Slitaz and open the exported file with leafpad text editor and I can see my details just the same.Previously I used RoboForm and when viewing an exported file in the same way you could not make out any of my details. Is KeePassX designed this way or have I not used KeePassX correctly.I have posted this on KeePassX forum and emailed them direct with no response so far.Ubuntu 11.04.

View 9 Replies View Related

Ubuntu Security :: Is Running Ubuntu Within Windows As Secure As Standalone?

Jan 1, 2011

I currently have a dual boot - Ubuntu 10.10 (the latest one) and Windows XP.If I install Ubuntu to also run within Windows will I be just as protected against malware as when I boot directly into Ubuntu?

View 3 Replies View Related

Security :: Write A Shell Script Setup Security Policies?

Feb 3, 2010

Is there a way to delete files on the commandline that uses the KDE-Wastebin?It appears that I never ever need the KDE4 Wastebin for files that I deleted through Konqueror or Dolphin. It is only when I delete files on the konsole with rm that I wish I could undelete them. It always happens like that, mostly by being in the wrong directory or using a wildcard when I should not have. (I don't have any erroneous deleted file right now, and I do have plenty of backups, but I just wonder whether there is something better than rm to use generally on the commandline.)

View 9 Replies View Related

Fedora Installation :: Anaconda Bombs During Upgrade?

Jun 10, 2010

I have run preupgrade; the image won't fit on the existing boot sector; so it wants an internet connection, which it has. Then it bombs after it detects the existing installation (Fedora 11), and also detects where the boot record is, which I tell it update. The bug report file generated by anaconda is attached. I would have done this in Bugzilla, but for some reason it will not recognize my login.Critical information:quad x86_64 machine, 8 GB memory, dual boot, two hard drives. hard drive 1 has Linux, hard drive 2 has Vista, the mbr is on hard drive 2.It is possible the unusual configuration is the cause of the problem. I do hope I can get around this, because there is so much stuff installed that it would be a real pain to start from scratch.

View 5 Replies View Related

Red Hat / Fedora :: It Starts The Anaconda Graphical And Then Bombs?

Nov 18, 2010

I'm running kickstart embedded in the dvd. it starts the anaconda graphical and then bombs.here's my environment:

VMware
4disk
sda= 50G

[code]....

View 5 Replies View Related

Fedora :: Update To Sunbird-1.0-0.17.20090916hg.fc12 Bombs?

Jan 23, 2010

I just finished a few updates this evening (Friday Jan. 22, 2010). Attempting to launch Sunbird from the menu after the updates finished brought nothing. From the command line:

Code:
BASH:~/-> sunbird
Cannot find Calender runtime directory. Exiting.
Great, just great.

If you also experience this same scenario, there is a quick fix. As root, load /usr/bin/sunbird into a text editor of your choice. Edit the line:

moz_libdir=/usr/lib/sunbird-1.0b2pre
to read:
moz_libdir=/usr/lib/sunbird-1.0pre
I suppose that would be /usr/lib64/ if you're using 64 bit OS.

Whether this was a glitch in the delta rpm rebuild (yum presto) that only might have effected me, or a packaging snafu that's going to catch everyone, I don't know at this time.

View 8 Replies View Related

Ubuntu Installation :: Burning The 64-bit ISO - Always Bombs Out On Closing Or Finalizing The CD

Apr 11, 2010

I'm having issues burning the 64-bit ISO. I currently have 32-bit installed and wanted to have a fresh 64-bit build. The MD5 checks out OK. I tried burning it in Windows with Nero, in my 32-bit Ubuntu, at reduced speeds, and no dice. I had no issues burning the 32-bit ISO. The burn always bombs out on closing or finalizing the CD.

View 2 Replies View Related

Slackware :: Skype Begins To Startup Bombs After Installing Inkscape

May 27, 2011

I'm getting the following errors when I try to start skype:

[code]...

I installed Skype from the slacky.it package HERE. Everything was fine, all was stable and rosey, until I installed Inkscape today. I hadn't even noticed it wasn't running until someone got a hold of me and said they were trying to get a hold of me. When I went to fire it up, thinking that I had somehow inadvertently closed it, it sprang right up for just a second and then was gone. Same thing - three times in row. So I tried starting if from the command line and got that error. I can start it from the comman line as root, with the following error:

[code]...

The deps for Inkscape that I installed, and in the following order, were all from the 13.1 repo, and the ones I didn't already have installed were:

[code]...

View 1 Replies View Related

Security :: How To Encrypt Shell Scripts

Apr 1, 2010

We have some script files on our linux servers. For security purpose our requirement is to keep these files encrypted . I mean when we open the files it will looks like as for example i am showing you one encripted file of iur server. how can i do this.

one encrypted files from our server:-

[utibaadm@AIRTELVTUD2_UVAS01server_monitoring]$cat SOUTH_DTH_MONITOR.sh
#!/bin/sh
skip=14
tmpdir=`/bin/mktemp -d ${TMPDIR:-/tmp}/gzexe.XXXXXXXXXX` || exit 1
prog="${tmpdir}/`echo "$0" | sed 's|^.*/||'`"

[Code].....

View 3 Replies View Related

Ubuntu Security :: Testing Shell Codes In 10.10

Feb 9, 2011

I am learning exploit development and learning some stuff about shellcodes now! The shellcode is absolutely right and have tested it. I am using the following code...(created by me) to run my shellcode..

Code:
// #include<stdio.h> we will not be needing this as we are not using any functions from the C library...Just basic logic of Pointers..
char shellcode[] = "x31xc0xb0x01x31xdbxb3x07xcdx80"; // basic exit shellcode
int main()
{ int *ret; // a simple integer pointer pointing a address
ret = (int *)&ret + 2; // change the address pointed by
(*ret) = (int)shellcode; }

Compiling :-
Code:
aneesh@aneesh-laptop:~/articles/C$ gcc test.c -o test -fno-stack-protector
Compiling gives no errors as expected..

Now the problem I am facing is that As I run the program :-
Code:
aneesh@aneesh-laptop:~/articles/C$ ./test
Segmentation fault

Strace output :-
Code:
aneesh@aneesh-laptop:~/articles/C$ strace ./test
execve("./test", ["./test"], [/* 37 vars */]) = 0 .....
set_thread_area({entry_number:-1 -> 6, base_addr:0xb78016c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xf5e000, 8192, PROT_READ) = 0
mprotect(0x8049000, 4096, PROT_READ) = 0
mprotect(0x15c000, 4096, PROT_READ) = 0
munmap(0xb7802000, 81274) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Segmentation fault

I have some feeling that its because the program has no access to the memory containing the shellcode (May be???)..

View 2 Replies View Related

Ubuntu Security :: How To Add User Password In Shell Script

Mar 17, 2010

I'm currently creating a simple sh file which will copy the contents of a certain directory to / directory. in my sh file:

Code:

cd "$DIR"
for i in *.*; do
sudo cp -iv "$i" "$DEST"
done

but this requires user password. can i add the user password in my sh file? how? I'm trying to do this because I have an application to run the sh file and the application has no way to enter the password..

View 9 Replies View Related

Ubuntu Security :: Running Shell Commands From Apache

Jun 3, 2011

Ok, so I have a few web apps that need to run shell commands. Heres a great example of one:

Code:

This is a PHP script getting my system volume. Herein lies the problem... www-data doesn't have permission to do this!

I changed my apache config to use MY account as the web user, and it does in fact work the way I want it to.

Obviously, I dont want to leave apache running as me, and want it to keep using www-data.... heres my question... how can I give permission for www-data to execute certain programs?

View 3 Replies View Related

Ubuntu Security :: Advance User Setting Shell

Jun 22, 2011

As I was researching on how to create a kiosk Ubuntu setting I came upon a suggestion to create the user with '/usr/bin/screen' shell option.Hope you all would forgive me for this noob question but what does this mean? I saw when I checked the Advance Settings Advance tab that there are a couple of possible options there, what do they mean and how will they affect the user profile I'm creating? I tried google for this and if my understanding is correct, these shells are suppose to be programmable and a scripting language for linux but I'm confused on what effect this has on the user profile I'm creating?One thing I notice though is that with the '/usr/bin/screen' option, the user account is refused of the Applications > Accessories > Terminal option.When I googled each one of the options I'm getting more confused as to the relevance of this to the user profile.

View 3 Replies View Related

Security :: Shell Login Tripwire - Optimal Place?

Jul 11, 2010

I have disabled root login in my remote shell and I have a pretty strong password. I am not happy though. I want to increase security. I've been thinking about installing some basic tripwire rig, like say, send myself an email every time I (or anyone) log in. My questions:

- What kind of data would be useful to be sent in that email? Anything else besides "user so-and-so logged in at {date and time}"?

- How would I achieve that? Is it enough to include it in .tcshrc (because my shell is tcsh)? Should I add it to other shells as well (.bashrc, .csh etc.) even though nobody uses the other shells? Is it better placed in some other file, like .login? What is the optimal place?

- Would that be enough? Can I make that whole idea more secure in any way?

View 11 Replies View Related

Security :: Write A Shell Script Setup Policies?

Apr 14, 2011

Write a shell script setup linux security policies include:

1. password policy
2. User policy
3. firewall

Note: Create a file.sh from 1 to 3. purposes:

If (1) successful then 2 If (2) successful then 3 End

View 3 Replies View Related

Programming :: Write A Shell Script To Set Security Policies?

Apr 13, 2011

I don't know how to write a shell script to set security policies for Linux to start. and how. I know that there are many security policies for Linux but do not know which one best suited to write a shell script.

View 5 Replies View Related

Ubuntu :: Standalone Calendar App For 10.04?

May 18, 2010

I need a standalone calendar application for ubuntu lucid. I used Sunbird under karmic and LOVED it and the add-ons I could use with it (automatic export of calendars, among other things) but it's been discontinued. I don't want to use Lightning, because I want a standalone program that won't have too many dependencies. Chandler has also been discontinued, so that's not an option.

EDIT: Evolution doesn't work for me because I can't use it without an email address. Since I don't use my email through that package, that restriction makes the program useless to me.

View 7 Replies View Related

OpenSUSE :: Looking For Actual Standalone Git Client?

May 26, 2011

Is there a git client that doesn't require git to be installed? Every client I've found so far requires the binary "git" to be installed on your system and is simply a wrapper to that. Does anyone know of an actual standalone git client?

View 2 Replies View Related

Ubuntu Multimedia :: Burning Dvd For Standalone ?

Jun 13, 2010

I have finally ripped my dvd collection to my external hard drive, and now I want to make fair use back ups of my discs (incase the worst happens and I lose my HD and my original disc) I remember there was a tutorial on these forums a while back but I can't seem to find it.

View 1 Replies View Related

Ubuntu :: Standalone Calendar/PIM That Can Email

May 5, 2011

I'm looking for a calendar/PIM that can run alone, let me create events/reminders, and maybe send emails out for chosen events. It doesn't need to remain on the desktop, but that would be ok. I looked at Lightning but I'm not always running T-bird. I liked Rainlendar but it won't send emails out.

View 2 Replies View Related

Ubuntu Installation :: 11.04 Aa A Standalone On 500 GB SATA HDD?

May 23, 2011

I will be installing Ubuntu 11.04 aa a standalone on my 500 GB SATA HDD. I plan to have the following partitions:-

ROOT - 20 GB
BOOT - 50 GB
SWAP - 2 GB
HOME - Remaining space

Will this work properly? I will be downloading many addituonal softwares. Hence BOOT partition is 50 GB.

View 9 Replies View Related

Networking :: FreeNAS Standalone NAS Box Fileserver?

Apr 13, 2011

I would like to make a small NFS server for a small LAN. Normally, I would build a dedicated cheap and cheerful linux box to do this. However, I was wondering if all of this could be done more easily using a commodity standalone device like e.g. "NetGear ReadyNAS Duo NAS". I presume devices like this run their own proprietary OSes, and I would prefer instead an opensource OS based device. I do like the look of these devices as they seem simple and small.

So my real question: What would linuxers advise for me given that I want a minimalistic NFS fileserver? I can make my own dedicated linux desktop machine. However, is a standalone device similar to the above, but running something like FreeNAS, also an option?

View 6 Replies View Related

General :: How To Use Fork In My Programme

Aug 31, 2009

1) Write a C program using the fork() system call that that generates the Fibonacci sequence in the child process. The number of the sequence will be provided in the command line. For example, if 5 is provided, the first five numbers in the Fibonacci sequence will be output by the child process. Because the parent and child processes have their own copies of the data, it will be necessary for the child to output the sequence. Have the parent invoke the wait() call to wait for the child process to complete before exiting the program. Perform necessary error checking to ensure that a non-negative number is passed on the command line.

2) Repeat the preceding exercise, this time using the CreateProcess () in the Win32 API. In this instance, you will need to specify a separate program to be invoked from CreateProcess(). It is this separate program that will run as a child process outputting the Fibonacci sequence. Perform necessary error checking to ensure that a non-negative number is passed on the command line.i have done with Fibonacci sequence .but i dont know how to include tht fork() function and win32 api .any one can help to finish?

View 4 Replies View Related

Programming :: How To Use Globals When Using Fork

Sep 16, 2010

As part of my ongoing project I need to put together a messaging server of sorts. So far I have coded a server which accepts multiple connections, which then runs a function that will perform a task, see below.On this sever I have a global structure which is populated using the data found in a read() buffer. However with each fork() that runs the below function each process is handed a blank structure. How could I go about allowing each fork() child process access the same structure?

My code should hopefully show what I am trying to do?
Code: void listen_for_client(int sock)
{

[code]....

View 5 Replies View Related

Programming :: Can't Run Second Child In C (Fork)

Apr 10, 2011

Now,I created one parent and two children. I must create some value as random in child1 and child1 has to send these values to child2.Child2 must read them.. now,I cant create some random values and i can send them.But child2 doesnt work. I have two functions. One them is writing, another one is reading. Child2 uses reading function,but it doesnt work (child2 cant call it, because writing function in endless loop) What i must do? I used wait,usleep... No way.. I attached my file and also there is code..

PHP Code: #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
#include <stdarg.h>
#include <sys/types.h>
[Code].....

View 2 Replies View Related

General :: Use Easily Like Windows ?

Jul 31, 2010

What do i need to read or watch to start using Linux (any distribution) easily?

View 5 Replies View Related

Ubuntu :: CPU Maxing Out Easily?

Dec 16, 2010

I recently bought an old desktop off ebay to give to my dad with lubuntu installed on it. He doesnt do much - just the usual web browsing and storing photos - so i went with something reasonably old and cheap - 2.6ghz celeron (ugh I Know) emachine (again ugh, but I thought it would the job). I made the RAM up to 512Mb and installed lubuntu.

Unfortunately when I installed flash the video was all jumpy when watching anything online. So I looked into the onboard graphics and found that there are driver issues with some of that series. So I bought a graphics card (NVIDIA Geforce 5500 128mb - PCI cos the lame MB doesnt have PCI -e or AGP).

Sadly the video is still jumpy and lame. I've tried it in firefox as well so this isnt a Chromium issue. The video is watchable if you download it and then play through VLC (which it wasnt before the NVIDIA card). Xfce4 Taskmanager shows CPU useage maxing when I use Chromium to watch flash but RAM staying around half used.

I know I've been a tool buying an emachine - particularly with a Celery processor and no AGP or PCI-e (ebay is a cruel mistress at times) but Im appealing for any help people might have to sort this out. Im hoping there might be something I can do.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved