Welcome, Unregistered.
You last visited: Today at 07:32 PM






 

Members:
Threads:
Posts:
Online:

Newest Member:


Add Me

Go Back   Hosting Reseller Forums > Hosting Business & Technology > Privacy Issues

Tags:



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-01-2008, 02:06 AM
Anonymous
 
Posts: n/a
Default Here's a *USEFUL* script to manage stats files



The idiot eel keeps whining about someone writing something
useful for the remailer community, so here's my first attempt
at Python programming. It removes all traces of eelbash from your
mlist and rlist type .txt files. :-)

It's for Ubuntu (Debian) based mixmaster installs that use
cron.daily to update /ver/lib/mixmaster/stats, but it could easily
be modified to handle any install by modifying the 'filelist ='
line I think.

I saved the script as /usr/bin/mixmaster-fix-stats, chmod it 755,
then modified /etc/cron.daily/mixmaster as below. Works fine
that way on my machine, but feel free to tweak as needed.

---cut---
#! /usr/bin/python
import glob
filelist = glob.glob("/var/lib/mixmaster/stats/*.txt")
for file in filelist:
infile = open(file, 'r')
statsfile = infile.readlines()
infile.close()
outfile = open(file, 'w')
for line in statsfile:
if not "eelbash" in line:
outfile.write(line)
outfile.close()
---cut---

And here's an example of a modified /etc/cron.daily/mixmaster file:

---cut---
#!/bin/sh
# Mixmaster update cron job. To be run daily.

# Get configuration
/etc/mixmaster/network.conf

if [ "$NETWORK" = "permanent" ] && [ -x /usr/bin/mixmaster-update ]; then
su mixmaster -c "/usr/bin/mixmaster-update";
su mixmaster -c "/usr/bin/mixmaster-fix-stats";
fi
---cut---

Improvements to the script would be removing the idiot eel's keys
from both keyrings too. If anyone wants to give that a crack go for
it. I have no clue how to open or edit a PGP keyring in Python but I
could probably tackle the mixmaster keys if nobody else wants to.

Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-01-2008, 06:20 AM
Null
 
Posts: n/a
Default Re: Here's a *USEFUL* script to manage stats files

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Anonymous wrote:
> The idiot eel keeps whining about someone writing something
> useful for the remailer community, so here's my first attempt
> at Python programming. It removes all traces of eelbash from your
> mlist and rlist type .txt files. :-)
>
> It's for Ubuntu (Debian) based mixmaster installs that use
> cron.daily to update /ver/lib/mixmaster/stats, but it could easily
> be modified to handle any install by modifying the 'filelist ='
> line I think.
>
> I saved the script as /usr/bin/mixmaster-fix-stats, chmod it 755,
> then modified /etc/cron.daily/mixmaster as below. Works fine
> that way on my machine, but feel free to tweak as needed.
>
> ---cut---
> #! /usr/bin/python
> import glob
> filelist = glob.glob("/var/lib/mixmaster/stats/*.txt")
> for file in filelist:
> infile = open(file, 'r')
> statsfile = infile.readlines()
> infile.close()
> outfile = open(file, 'w')
> for line in statsfile:
> if not "eelbash" in line:
> outfile.write(line)
> outfile.close()
> ---cut---
>
> And here's an example of a modified /etc/cron.daily/mixmaster file:
>
> ---cut---
> #!/bin/sh
> # Mixmaster update cron job. To be run daily.
>
> # Get configuration
> . /etc/mixmaster/network.conf
>
> if [ "$NETWORK" = "permanent" ] && [ -x /usr/bin/mixmaster-update ]; then
> su mixmaster -c "/usr/bin/mixmaster-update";
> su mixmaster -c "/usr/bin/mixmaster-fix-stats";
> fi
> ---cut---
>
> Improvements to the script would be removing the idiot eel's keys
> from both keyrings too. If anyone wants to give that a crack go for
> it. I have no clue how to open or edit a PGP keyring in Python but I
> could probably tackle the mixmaster keys if nobody else wants to.
>

hihihihihi !!!! Great !

- --
FINGERPRINT: 9FB9 3120 18AC 1398 DC72 A0BC E376 FE1E 4D28 064B
pub 1024D/4D28064B 2008-10-19
uid NoAuth Admin (RISEUP.NET) <noauth666@riseup.net>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkzfeEACgkQ2+ZUJYAjGpDyHwCfbN7oKdNgQq 3g0T2yfiSPMRgB
IygAn1XBoysSKjoL+pO8xqqmjwKteWni
=vmXo
-----END PGP SIGNATURE-----
Reply With Quote
  #3 (permalink)  
Old 12-01-2008, 04:08 PM
Anonymous Remailer (austria)
 
Posts: n/a
Default Re: Here's a *USEFUL* script to manage stats files


Anonymous wrote:

THANK YOU!

I've been deleting eelbash manually every day when I download stats
pages. This saves me the bother! :-))

> The idiot eel keeps whining about someone writing something
> useful for the remailer community, so here's my first attempt
> at Python programming. It removes all traces of eelbash from your
> mlist and rlist type .txt files. :-)
>
> It's for Ubuntu (Debian) based mixmaster installs that use
> cron.daily to update /ver/lib/mixmaster/stats, but it could easily
> be modified to handle any install by modifying the 'filelist ='
> line I think.
>
> I saved the script as /usr/bin/mixmaster-fix-stats, chmod it 755,
> then modified /etc/cron.daily/mixmaster as below. Works fine
> that way on my machine, but feel free to tweak as needed.
>
> ---cut---
> #! /usr/bin/python
> import glob
> filelist = glob.glob("/var/lib/mixmaster/stats/*.txt")
> for file in filelist:
> infile = open(file, 'r')
> statsfile = infile.readlines()
> infile.close()
> outfile = open(file, 'w')
> for line in statsfile:
> if not "eelbash" in line:
> outfile.write(line)
> outfile.close()
> ---cut---
>
> And here's an example of a modified /etc/cron.daily/mixmaster file:
>
> ---cut---
> #!/bin/sh
> # Mixmaster update cron job. To be run daily.
>
> # Get configuration
> /etc/mixmaster/network.conf
>
> if [ "$NETWORK" = "permanent" ] && [ -x /usr/bin/mixmaster-update ]; then
> su mixmaster -c "/usr/bin/mixmaster-update";
> su mixmaster -c "/usr/bin/mixmaster-fix-stats";
> fi
> ---cut---
>
> Improvements to the script would be removing the idiot eel's keys
> from both keyrings too. If anyone wants to give that a crack go for
> it. I have no clue how to open or edit a PGP keyring in Python but I
> could probably tackle the mixmaster keys if nobody else wants to.
>



Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:32 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.

A vBSkinworks Design

© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network