Computer security is shit

Perl CGI? Please say Perl CGI.

Perl CGI :smiling_imp:

Hay, I had literally like four minutes to write the entire handler! (I should have fast-cgi’ed it to, I dunno, a Lisp command in emacs. That would have been awesome)

1 Like

Perl runs on modern machines?

1 Like
$param = $q->param('totally_safe');
$param =~ s/[^a-zA-Z0-9]//g;
say '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><head></head><body>';
say "Take me, I'm yours $param";
1 Like

Every perl script I write starts with:

`killall python 1&2>/dev/null`

Just out of spite.

6 Likes

Anyone going to RSA this year?

Perl is still used in a lot of odd places you might not expect. I’ve had it on my todo list to kill the handful of ancient Perl CGIs the thing at work uses since I got there (used for auth, naturally, fairly 90s, and with ‘our’ sprinkled around and no ‘warnings’). The first month I was there I was locking things in those scripts down in terror.

I kind of like Perl for quick one-off scripts, since sh is the spawn of Satan and perl’s always there.

2 Likes

Scripting in perl should be considered spiteful enough. ( i wrote some great one offs in the past using perl, but I prefer languages that don’t make me feel like I’m fuzz testing my own brain when I come back and look at the code a month later.)

3 Likes

‘our’ is an abomination that should be killed with fire. I do like fucking with people and mixing functional, procedural, and oop all in one subroutine.

If you haven’t read this diatribe, its worth a read (mostly java complainin’, but a good read)

2 Likes

It’s nice for some things if you’ve already gone through the pain of learning it and don’t want to drag in sed/awk/pipes:
perl -i.bak -pe “s/old/new/ig;” file

If you have to save the script in a file and then open that file again then it’s dicier, but if it’s trivial it can be fine.

1 Like

It’s fantastic for one liners. I’ve got a bit of bitterness though having inherited poorly commented applications with multiple modules, all, written, in fucking perl. <shakes fist at sky/>

2 Likes

I’m starting to take your claims of being evil more seriously.

2 Likes

Oh, so you found my code?

1 Like

There’s a phrase I learned a few decades ago, and its not a compliment: Three Star Programmer. As in:

***string

As in a pointer to a pointer to a pointer. Try debugging that shiat. It denotes a developer who thinks they are clever, but all his colleagues fucking loathe him.

7 Likes

Like doing math in a korn shell script cause some random update broke bc?
[size=10](Not my proudest moment)[/size]

4 Likes

No, the person who wrote it moved on to be a big shot executive at a tier 1 provider. He doesn’t touch code now, and we’re all better off because of it.

2 Likes

I think we should start a different rant thread on Java because otherwise it would take over everything.
At the job I do
35% Java
20% C (split between kernel/userspace)
40% Rails
5% other crap
but it feels like 80% Java because of the slog through AbstractProfileFactoryThreadBuilder.java with added dependency injection head meltingness (and some Hibernate for extra magic). It does make kmalloc() seem more friendly, though.

All of it begs for one lazy/poorly informed/briefly confused person to make an error and open up a security vulnerability too.

1 Like

Again, back to sec, I have a friend that is a founder of a company that is an RSA finalist.

http://www.rsaconference.com/press/46/rsa-conference-announces-finalists-for-innovation

They are ‘Phantom’. I’ve known him for a decade and I couldn’t be more proud.

2 Likes

Repeat after me: There is no such thing as secure PHP.

2 Likes

Why bother?

2 Likes