Advertisement
Guest User

simple md5 check py 0134

a guest
Jan 3rd, 2015
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.97 KB | None | 0 0
  1. # muh hash list
  2. M5LIST = (
  3.     {"name":"python22.dll", "md5":'ccc6b81522a31fdbbc8395d6c36a831e'},
  4. )
  5. # gotta hash
  6. import md5 # only in py22
  7. def GetMD5(filename):
  8.     f1 = open(filename)
  9.     m1 = md5.new()
  10.     m1.update(f1.read())
  11.     f1.close()
  12.     return m1.digest().encode('hex')
  13. # check intensifies
  14. from os.path import exists as ope
  15. oppai = False
  16. for el in M5LIST:
  17.     fname = el["name"]
  18.     if ope(fname) and GetMD5(fname)==el["md5"]:
  19.         continue
  20.     # right now or file doesn't exist or got bad hash
  21.     oppai = True
  22.     break
  23. # time to destroy
  24. from os import _exit as os_exit
  25. from dbg import LogBox as wowrly
  26. if oppai:
  27.     wowrly('''The long poem is a literary genre including all poetry of considerable length. Though the definition of a long poem is vague and broad, the genre includes some of the most important poetry ever written.
  28. The long poem traces its origins to the ancient epics, such as Homer's Iliad and Odyssey. With more than 220000 (100000 shloka or couplets) verses and about 1.8 million words in total, the Mahabharata is the longest epic poems in the world. [1] It is roughly ten times the size of the Iliad and Odyssey combined, roughly five times longer than Dante's Divine Comedy, and about four times the size of the Ramayana. In English, Beowulf and Chaucer's Troilus and Criseyde are among the first important long poems. The long poem thrived and gained new vitality in the hands of experimental Modernists in the early 1900s and has continued to evolve through the 21st century.
  29. The long poem has evolved into an umbrella term, encompassing many subgenres, including epic, verse novel, verse narrative, lyric sequence, lyric series, and collage/montage. In contemporary poetry, the long poem has become a space for the emergent voices of historically under-represented writers including women, post-colonial subjects, the gay and lesbian community, and racially/ethnically oppressed persons, who seek the definitive communal voice connoted by early long poems.[citation needed]''')
  30.     os_exit(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement