Agadir (2)
   Computers (13)
   Gadgets (4)
   General (36)
   Howtos (4)
   Japanese (5)
   Linux (12)
   Movies (4)
   Old Blog (90)
   Programming (5)
   Software (6)
   Web & Design (7)

 Subscribe to Posts
 Subscribe to Comments

Local root exploit in Linux kernels 2.6.17 to 2.6.24

117 views
Linux

The exploit allow local users to gain root access using a “proof of concept” exploit. The exploit worked on my machine (Kernel 2.6.22-gentoo-r2).
The bug report:

And here’s a working patch:

--- a/fs/splice.c
+++ b/fs/splice.c
@@ -1234,7 +1234,7 @@ static int get_iovec_page_array(const struct iovec __user *iov,
                if (unlikely(!len))
                        break;
                error = -EFAULT;
-                if (unlikely(!base))
+               if (!access_ok(VERIFY_READ, base, len))
                        break;
 
                /*
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
No Comments »

Weekly Links: 2008.05

317 views
General

Links
Sprout: The Online WYSIWYG Editor for Flash
Microsoft wants to purchase Yahoo


Images
I hope those pillars are strong
PICTURES: Australia’s Monster Motorbike
Firefox crash
It’s cold
Making the city work together LOL


Videos
Gigantic Mech Animals are a Seriously Stylish Way to Travel
Personal helicopter
Frozen Grand Central


Geeky (click at your own risk!)
Richard Stallman does not use a web browser. At all.
Richard Stallman is the new Chuck Norris
GRUB/Chainloaded CD-ROM

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
1 Comment »

Manga download shell-script

121 views
Japanese, Linux

Tired of browsing you favorite manga download site to get your daily doze?

Here’s a shell-script to help you automatize the process:

1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
if (( $# < 1 )); then
  echo "usage: ${0} NUM [NUM]..."
  exit 1
fi
 
manga="${PWD##*/}"
 
for ep in "$@"; do
  URL="http://stoptazmo.com/downloads/get_file.php?file_category=${manga}&amp;mirror=1&amp;file_name=${manga}_${ep}.zip"
  wget -c -U Links "${URL}"
done

To use it, create a directory named with the exact name from the web site:

$ mkdir slamdunk
$ cd slamdunk
$ getmanga.sh 150 151
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
No Comments »
Page 1 of 11
WP Theme GlossyBlue Modified by Fahdos