C++ Learning Community Forum
August 01, 2010, 02:33:41 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Hello. Smiley
 
   Home   Help Search Login Register  
Pages: [1] 2 3
  Print  
Author Topic: Pasture project (php)  (Read 3411 times)
ih8censorship
Megalomaniac!!!
Administrator
C++ guru
*****
Posts: 1236



View Profile
« on: May 06, 2009, 03:23:41 PM »

Lately I've been working on a project called "Pasture" in PHP. It is a CMS/trading system for malware collections. I called it pasture as a bit of a play on words and the name "Louis Pasteur" which was a man that did a lot of work with germs. Pasture is easier for people who speak english to say, and I also like to think of it as malware "going out to pasture" so it fits. It's not complete yet, but quite a bit of it is working the way I want it. You can check it out at http://pasture.svn.sourceforge.net/viewvc/pasture/src/ you can click the revision numbers to see the code. The indenting is a little messed up, I haven't figured out exactly why as the sourcecode in notepad++ looks fine when I edit it.

So far there are 2 dependencies outside of a standard install of Php:
Smarty Template Engine - Using this to allow Pasture to use multiple skins, kindof like how a lot of forum software does.
PclZip - Using this for the update mechanism, dynamically packaging updates based on what a user still needs, and unpackaging the updates to be installed.

If anyone is interested I could update the demo I have online so you could get a better idea of what Pasture is. Smiley Any thoughts on the code or the project itself?
Logged

PC==perfect_companion

Knowledge cannot come packaged and predigested; it must be chewed over carefully before swallowed.

What have you tried?
C-Man
Does anyone even read this ?
Global Moderator
Dr. of C++ology
*****
Posts: 988



View Profile WWW
« Reply #1 on: May 06, 2009, 03:51:42 PM »

i want a demo  Grin
Logged

oulyt
C++ Freak
***
Posts: 340



View Profile
« Reply #2 on: May 06, 2009, 07:25:09 PM »

i loveeeeeee the idea behind the project, and the project itself. it would be really cool to see how the malware acts in the grass field.
Logged
ih8censorship
Megalomaniac!!!
Administrator
C++ guru
*****
Posts: 1236



View Profile
« Reply #3 on: May 07, 2009, 06:04:45 AM »

Quote
i want a demo   Grin
my job very suddenly exploded all over my life, (and during hunting season too, i think its strange that after months of no work I get called to work during hunting season. Not like the week before or the week after, but during haha.) and I have a bit of hunting to do this weekend, But I'll get an updated demo set up next week. All of the features wont be useful (as the update feature for example requires another server to update from, see my thinking is that people could use this on a machine on their own networks dedicated to malware collecting to keep them safe) but there will be plenty to look at and play with even though it's just basic html as I do not have much css experience yet.
Quote
it would be really cool to see how the malware acts in the grass field.
I kind of picture them as cartoon cows with biohazard and radiation symbols on them haha. Though to be fair there probably are some horses and worms in the field as well  Wink haha.
Logged

PC==perfect_companion

Knowledge cannot come packaged and predigested; it must be chewed over carefully before swallowed.

What have you tried?
ih8censorship
Megalomaniac!!!
Administrator
C++ guru
*****
Posts: 1236



View Profile
« Reply #4 on: May 16, 2009, 06:25:34 PM »

I didn't get all the updating I wanted to done this week, but here is an updated, basic demo of the existing, working features.

index.php - Right now this is mostly just a page for testing a few things. eventually what is currently on this page will be on other pages and the index will act like a normal index and have links to various parts of the pasture. Also search feature works, and will take you to view.php and notes.php and download.php links.oh and it also uses setskin.php to set skins, but as of right now one of the skins is very out of date and will cause compatibility issues. The default one is fine though.

stats.php - Some statistics including numbers and percentages of the collection

update.php - update the collection with data from another server, add servers, remove servers. The update feature uses 3 php files, update.php (add and remove update servers, call doupdate.php with post data), doupdate.php (calls createupdate.php on the remote server multiple times for multiple reasons, and actually does the local part of the update), createupdate.php (called on the remote server, initializes, weeds entries that would otherwise be duplicated, and packages the update in a zip file , with malicious data encoded as base64 to bypass any scanning that may take place along the wire).

random.php - will take you to a random entry in the collection
« Last Edit: May 16, 2009, 06:28:51 PM by ih8censorship » Logged

PC==perfect_companion

Knowledge cannot come packaged and predigested; it must be chewed over carefully before swallowed.

What have you tried?
C-Man
Does anyone even read this ?
Global Moderator
Dr. of C++ology
*****
Posts: 988



View Profile WWW
« Reply #5 on: May 16, 2009, 06:28:06 PM »

well that's quite bare , give it some skin :p
Logged

ih8censorship
Megalomaniac!!!
Administrator
C++ guru
*****
Posts: 1236



View Profile
« Reply #6 on: May 17, 2009, 07:53:24 PM »

Well you know it is open source, and I'm not against any help in that matter  Tongue Wink You'd have to do some stuff using the Smarty templates, but that isn't really hard to learn.

I've mostly been focusing on the backend stuff as that is the bulk of the project, I'd like to get that closer to done before I personally start attempts at fancy skinning. I'm not against others tinkering around with it though, if anyone is interested just let me know.

Logged

PC==perfect_companion

Knowledge cannot come packaged and predigested; it must be chewed over carefully before swallowed.

What have you tried?
ih8censorship
Megalomaniac!!!
Administrator
C++ guru
*****
Posts: 1236



View Profile
« Reply #7 on: July 05, 2009, 11:00:34 PM »

I figure it's time to update everyone on this as it's been a while. Check this out http://pasture.sourceforge.net/pasturedemo/index.php . The main new things you will see are quite trippy captchas, pie charts (pie charts are somewhat unimpressive and plain as the data in the demo isnt too widely varied, thoughts on "spicing them up" in general would be more than welcome) There are a few new features (and of course bug fixes) on the backend. One interesting new feature i added is that people can log in anonymously using a captcha to verify that they are indeed human. This would give them more rights than an un authenticated user, and less rights than someone who uses a username and password to log in.

The captchas that you will see on the demo are quite plain, as the default font is used as I don't have any fonts installed at sourceforge. Here are a couple samples of what they can look like if a true type font is specified-



**edit**
Here is a bit more colorful pie chart
 
« Last Edit: July 06, 2009, 04:17:51 AM by ih8censorship » Logged

PC==perfect_companion

Knowledge cannot come packaged and predigested; it must be chewed over carefully before swallowed.

What have you tried?
oulyt
C++ Freak
***
Posts: 340



View Profile
« Reply #8 on: July 06, 2009, 04:23:37 AM »

wow very nice updates. i remember when you just started lol and look at it now.

next thing you know you'll be coding the skin for it
Logged
C-Man
Does anyone even read this ?
Global Moderator
Dr. of C++ology
*****
Posts: 988



View Profile WWW
« Reply #9 on: July 06, 2009, 10:25:47 AM »

speaking of captcha http://caca.zoy.org/wiki/PWNtcha
Logged

ih8censorship
Megalomaniac!!!
Administrator
C++ guru
*****
Posts: 1236



View Profile
« Reply #10 on: July 06, 2009, 12:43:15 PM »

cool, I've been looking for something like that C-man Smiley my thinking is if i can get as close as possible to being not human readable (and not human readable in some cases) automated systems should have a harder time with it. I'll test it out when i get a chance Smiley
Logged

PC==perfect_companion

Knowledge cannot come packaged and predigested; it must be chewed over carefully before swallowed.

What have you tried?
ih8censorship
Megalomaniac!!!
Administrator
C++ guru
*****
Posts: 1236



View Profile
« Reply #11 on: July 31, 2009, 06:46:43 PM »

I've been focusing on the front end lately http://pasture.sourceforge.net/pasturedemo/index.php It's going alright and looking tons better. The current demo at source forge is configured for a single user, so the front end is less impressive than the multiple user where the menu is dynamic and stuff. maybe once i get a couple skins made ill do a demo of them both, one in single user mode and one in multiple user mode. one problem i have run into though is my footer seems to be in the wrong place, at least on the statistics page.  http://pasture.sourceforge.net/pasturedemo/stats.php and my css file is http://pasture.sourceforge.net/pasturedemo/css/Ocean/ocean.css So good thoughts on ways to correct that would be appreciated, as well as any other questions or comments Smiley
Logged

PC==perfect_companion

Knowledge cannot come packaged and predigested; it must be chewed over carefully before swallowed.

What have you tried?
oulyt
C++ Freak
***
Posts: 340



View Profile
« Reply #12 on: July 31, 2009, 08:13:07 PM »

did you try the way i suggested on aim?
Logged
C-Man
Does anyone even read this ?
Global Moderator
Dr. of C++ology
*****
Posts: 988



View Profile WWW
« Reply #13 on: July 31, 2009, 08:20:07 PM »

the design is very heavy on the browser Shocked it can barely scroll
Logged

ih8censorship
Megalomaniac!!!
Administrator
C++ guru
*****
Posts: 1236



View Profile
« Reply #14 on: August 01, 2009, 06:20:02 AM »

Really C-Man? that seems strange, I didnt notice anything. What sort of browser/system are you running? any thoughts on why it's not quick for you? it seems pretty basic, though the gradient might be causing some trouble due to the amount of tiling? 

oulyt, your way seemed a little hackish. so im going to do a bit of asking around to figure out if there is a more correct alternative. thanks though!
Logged

PC==perfect_companion

Knowledge cannot come packaged and predigested; it must be chewed over carefully before swallowed.

What have you tried?
Pages: [1] 2 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!