User Controls

  1. 1
  2. 2
  3. 3
  4. ...
  5. 123
  6. 124
  7. 125
  8. 126
  9. 127
  10. 128
  11. ...
  12. 169
  13. 170
  14. 171
  15. 172

Thanked Posts by Lanny

  1. Lanny Bird of Courage
    Originally posted by mmQ I was just looking at the back of mine and it says 'NOT LEGAL FOR TRADE.'

    Is that on every Digi? Why can't you trade it, it's your fucking property. Is it some technical bullshit about drugs?

    I assume it means the manufacturer doesn't guarantee its accuracy for use in weighing things in a business transaction. Like the manufacturer doesn't want to be on the line if their scale fucks up weighing out gold dust or something. You can definitely trade the scale itself with someone.
    The following users say it would be alright if the author of this post didn't die in a fire!
  2. Lanny Bird of Courage
    Yee, the future looks bright for me.

    And by "bright" I mean "heavily saturated in booze"
    The following users say it would be alright if the author of this post didn't die in a fire!
  3. Lanny Bird of Courage
    Originally posted by -SpectraL Uh oh, someone realized how full of shit I am on the internet. Instead of admitting I had no idea what I was talking about, I'll double down and say something even stupider while pretending to be serious. This will definitely save my internet cred.
    The following users say it would be alright if the author of this post didn't die in a fire!
  4. Lanny Bird of Courage
    I can imagine you spending a whole date just doing that "WHEEEEL GONTS" thing in a high pitched voice while the whale of a ho you're out with rolls her eyes
    The following users say it would be alright if the author of this post didn't die in a fire!
  5. Lanny Bird of Courage
    not an SG thread
    The following users say it would be alright if the author of this post didn't die in a fire!
  6. Lanny Bird of Courage
    Aldra has the most consistently entertaining responses.

    Captain father fucker and mmq are both kind hit or miss but the hits are v. good.
    The following users say it would be alright if the author of this post didn't die in a fire!
  7. Lanny Bird of Courage
    Originally posted by Erorr Those glasses and that haircut look like a 13 year olds wet dream of style. Poor feller

    His sense of style has since improved, now he has specialized autism sunglasses that block out peripheral vision because it's just too intense to look at multiple things.
    The following users say it would be alright if the author of this post didn't die in a fire!
  8. Lanny Bird of Courage
    Originally posted by -SpectraL In a .NET executable, the PE code section contains a stub that invokes the CLR virtual machine startup entry, _CorExeMain or _CorDllMain in mscoree.dll, much like it was in Visual Basic executables. The virtual machine then makes use of .NET metadata present, the root of which, IMAGE_COR20_HEADER (also called "CLR header") is pointed to by IMAGE_DIRECTORY_ENTRY_COMHEADER[5] entry in the PE header's data directory. IMAGE_COR20_HEADER strongly resembles PE's optional header, essentially playing its role for the CLR loader.

    The CLR-related data, including the root structure itself, is typically contained in the common code section, .text. It is composed of a few directories: metadata, embedded resources, strong names and a few for native-code interoperability. Metadata directory is a set of tables that list all the distinct .NET entities in the assembly, including types, methods, fields, constants, events, as well as references between them and to other assemblies.

    If you knew what half those words meant you'd realize how stupid copy pasting a section of an irrelevant wikipedia article that happened to contain the word "metadata" makes you look
    The following users say it would be alright if the author of this post didn't die in a fire!
  9. Lanny Bird of Courage
    There's no general way to ask "does my string occurs in this dictionary" because it's not really obvious what "occurs in" would mean. It's like asking "what's the sum of this number and this sting", the operation isn't defined over those types. When you write `if 'foo' in my_dict:` what you're asking is "is 'foo' one of the keys in my_dict`. You probably want to search within a specific field in each row (like if someone types in "apache" there's not much point in looking at the CVE column since the string "apache" is never going to appear there). If you really want to search every field you'd have to do something like this instead:


    query = raw_input("wut vuln m8?: ")

    with open('cve_mitre.csv', 'rb') as infile:
    csv_reader = csv.DictReader(infile)
    rows = [row for row in csv_reader]
    for row in rows:
    for col_name in row:
    if query in row[col_name]:
    print json.dumps(row)


    Note what gets sent to json.dumps doesn't need to be wrapped in this case since it (the vulnerability row) is already a dictionary.
    The following users say it would be alright if the author of this post didn't die in a fire!
  10. Lanny Bird of Courage
    Also I have no idea what you think "proprietary information" means, but I know you're wrong about it.
    The following users say it would be alright if the author of this post didn't die in a fire!
  11. Lanny Bird of Courage
    Spend years in solitude there, in deep meditation, trying to discover what strange confluence of psychological traumas induces you to tell lies no one believes for a moment consistently for years and years on end.
    The following users say it would be alright if the author of this post didn't die in a fire!
  12. Lanny Bird of Courage
    Originally posted by aldra

    mysql> SHOW DATABASES;
    +--------------------+
    | Database |
    +--------------------+
    | information_schema |
    | kids |
    | mysql |
    | pride |
    | wordpress |
    +--------------------+
    6 rows in set (0.00 sec)

    mysql> USE kids;
    Database changed
    mysql>


    [lanny:~/anatomy]$ ls
    elbow penis tities
    [lanny:~/anatomy]$ touch penis
    [lanny:~/anatomy]$ cat penis
    meow, meow--- squirt
    [lanny:~/anatomy]$
    The following users say it would be alright if the author of this post didn't die in a fire!
  13. Lanny Bird of Courage
    Originally posted by Sophie So i ahve a big CSV file that is formatted like this.

    CVE-1999-0026,Entry,"root privileges via buffer overflow in pset command on SGI IRIX systems.","CERT:CA-97.21.sgi_buffer_overflow   |   AUSCERT:AA-97.20.IRIX.pset.buffer.overflow.vul


    I want to use Python's JSON module to make it look more like this:


    CVE-1999-0026,
    Entry,"root privileges via buffer overflow in pset command on SGI IRIX systems.",
    "CERT:CA-97.21.sgi_buffer_overflow | AUSCERT:AA-97.20.IRIX.pset.buffer.overflow.vul


    If i can do that without the JSON module that'd be ok too. As usual we are talking Python here.

    The first thing you want to think about is the most natural way to represent these entries in JSON. Rather than representing them as a sequence it seems like key/values would make more sense. Usually CSV files come with row names at the top. Assuming that's the case you could do something like this:


    import csv
    import json

    import StringIO

    sample_csv = """cve_id,type,description,whatever
    CVE-1999-0026,Entry,"root privileges via buffer overflow in pset command on SGI IRIX systems.","CERT:CA-97.21.sgi_buffer_overflow | AUSCERT:AA-97.20.IRIX.pset.buffer.overflow.vul"
    CVE-1999-0027,Entry,"root privileges via buffer overflow in pset command on SGI IRIX systems.","CERT:CA-97.21.sgi_buffer_overflow | AUSCERT:AA-97.20.IRIX.pset.buffer.overflow.vul"
    """

    if __name__ == '__main__':
    pseudo_file = StringIO.StringIO(sample_csv)
    csv_reader = csv.DictReader(pseudo_file)

    rows = [row for row in csv_reader]

    print json.dumps({'vulns': rows})


    which produces this (after formatting):


    {
    "vulns": [
    {
    "whatever": "CERT:CA-97.21.sgi_buffer_overflow | AUSCERT:AA-97.20.IRIX.pset.buffer.overflow.vul",
    "type": "Entry",
    "description": "root privileges via buffer overflow in pset command on SGI IRIX systems.",
    "cve_id": "CVE-1999-0026"
    },
    {
    "whatever": "CERT:CA-97.21.sgi_buffer_overflow | AUSCERT:AA-97.20.IRIX.pset.buffer.overflow.vul",
    "type": "Entry",
    "description": "root privileges via buffer overflow in pset command on SGI IRIX systems.",
    "cve_id": "CVE-1999-0027"
    }
    ]
    }


    You can ignore the StringIO stuff, it's just a way to make a file-like object out of a string (csv.DictReader accepts a file-like object) but you'll have a real file.

    Also worth pointing out that the `rows` list (a list of dictionaries built from the rows of the CSV file) gets wrapped in a dict before being passed to `json.dumps`. You don't _have_ to do this, json.dumps will accept a list, but strictly speaking plain arrays are not valid JSON, per the spec every piece of JSON must decode to exactly one object. That object can have keys which are arrays but the top level must be an object (map from keys to values, equivalent to python's "dictionary" type).
    The following users say it would be alright if the author of this post didn't die in a fire!
  14. Lanny Bird of Courage
    What -SpectraL taught me about bears:

    Humans can realistically kill them with their bear (nyuck nyuck nyuck) hands.
    The following users say it would be alright if the author of this post didn't die in a fire!
  15. Lanny Bird of Courage
    Originally posted by 霍比特人说中文不好 Can anybody recommend me something good which isn't fighting based? I haven't been able to get into Monster much because the story is meh. Watched Silver Spoon for a bit but it was entirely too cutesy and schooly for my taste.

    Did watch On Top of Poppy Hill or Up On Poppy Hill or whatever its called and holy shit, its fucking fantastic. I really am in love with the busy traffic/street scenes in that movie. Maybe one of my favorite Miyazaki films.

    The Girl Who Lept Through Time was pretty good, has that Ghibli kind of pseudo-plot with more modern animation.
    The following users say it would be alright if the author of this post didn't die in a fire!
  16. Lanny Bird of Courage
    The following users say it would be alright if the author of this post didn't die in a fire!
  17. Lanny Bird of Courage
    Originally posted by Fuck-o the Liar Maybe…

    you're obviously an alt however
    The following users say it would be alright if the author of this post didn't die in a fire!
  18. Lanny Bird of Courage
    Also yee, hit me up when you're in town on the way back through, we'll hit a bar or something if the timing works. Would feel bad letting a guy who traveled the vertical length of the US on $50 pay.
    The following users say it would be alright if the author of this post didn't die in a fire!
  19. Lanny Bird of Courage
    Originally posted by Sophie Ya'll niggas seen zombie mode on Player Unknown Battlegrounds? Spoopy af.

    Just looked it up. I think it's funny that day-z spawned h1-z1 spawned battlegrounds specifically to get away from the zombie thing and now we've come full circle.

    Looks fun though, I'll give it a go.
    The following users say it would be alright if the author of this post didn't die in a fire!
  20. Lanny Bird of Courage
    Does the lion envy the gazel?
    The following users say it would be alright if the author of this post didn't die in a fire!
  1. 1
  2. 2
  3. 3
  4. ...
  5. 123
  6. 124
  7. 125
  8. 126
  9. 127
  10. 128
  11. ...
  12. 169
  13. 170
  14. 171
  15. 172
Jump to Top