1. Список говнокодов пользователя lancerok

    Всего: 4

  2. Python / Говнокод #12995

    −105

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    73. 73
    74. 74
    while buf!=0:
    		    if dec-1000 >=0: 
    			    buf=dec-1000; rim=rim+'M';
    		    else: 
    			    if dec-999 >=0: 
    				    buf=dec-999; rim=rim+'IM';
    			    else: 
    				    if dec-995>=0:
                                            buf=dec-995; rim=rim+'VM';
    				    else:
    					    if dec-990 >=0:
    						    buf=dec-990; rim=rim+'XM';
    					    else:
    						    if dec-950 >=0:
    							    buf=dec-950; rim=rim+'LM';
    						    else: 
    							    if dec-900 >=0:
    								    buf=dec-900; rim=rim+'CM';
    							    else: 
    								    if dec-500 >=0:
    									    buf=dec-500; rim=rim+'D';
    								    else:
    									    if dec-499 >=0:
    										    buf=dec-499; rim=rim+'ID';
    									    else:
    										    if dec-495 >=0:
    											    buf=dec-495; rim=rim+'VD';
    										    else:
    											    if dec-490 >=0:
    												    buf=dec-490; rim=rim+'XD';
    											    else:
    												    if dec-450 >=0:
    													    buf=dec-450; rim=rim+'LD';
    												    else: 
    													    if dec-400 >=0:
    														    buf=dec-400; rim=rim+'CD';
    													    else: 
    														    if dec-100 >=0:
    															    buf=dec-100; rim=rim+'C';
    														    else:	
    															    if dec-99 >=0:
    																    buf=dec-99; rim=rim+'IC';
    															    else: 
    																    if dec-95 >=0:
    																	    buf=dec-95; rim=rim+'VC';
    																    else:
    																	    if dec-90 >=0:
    																		    buf=dec-90; rim=rim+'XC';
    																	    else:
                                                                                                                                                    if dec-50 >=0:
    																			    buf=dec-50; rim=rim+'L';
    																		    else:
    																			    if dec-49 >=0:
    																				    buf=dec-49; rim=rim+'IL';
    																			    else:
    																				    if dec-45 >=0:
    																					    buf=dec-45; rim=rim+'VL';
    																				    else:
    																					    if dec-40 >=0:
    																						    buf=dec-40; rim=rim+'XL';
    																					    else:
    																						    if dec-10 >=0:
    																							    buf=dec-10; rim=rim+'X';
    																						    else:
    																							    if dec-9 >=0:
    																								    buf=dec-9; rim=rim+'IX';
    																							    else:
    																								    if dec-5 >=0:
    																									    buf=dec-5; rim=rim+'V';
    																								    else:
    																									    if dec-4 >=0:
    																										    buf=dec-4; rim=rim+'IV';
    																									    else:
    																										    if dec-1 >=0:

    Что это?Случайность или новое оружие диктатора Путина?

    lancerok, 13 Мая 2013

    Комментарии (22)
  3. Python / Говнокод #12992

    −94

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    #/usr/bin/python
    import sys, os, time, httplib
    if sys.platform == 'linux' or sys.platform == 'linux2':
     clearing = 'clear'
    else:
     clearing = 'cls'
     os.system(clearing)
    if len(sys.argv) != 2:
     print "\n|-------------------------------------------------------------|"
     print "|               Admin login finder     v2.0                     |"
     print "| Help: admin-find.py -h                                        |"
     print "|---------------------------------------------------------------|\n"
     sys.exit(1)
    for arg in sys.argv:
     if arg == '-h':
    	print "\n|-----------------------------------------------------------------------------|"
    	print "|                Admin login finder     v2.0                                    |"
    	print "| Usage: admin-find.py www.site.com                                             |"
    	print "| Example: admin-find.py site.com                                               |"
    	print "|-------------------------------------------------------------------------------|\n"
    	sys.exit(1)
    site = sys.argv[1].replace("http://","").rsplit("/",1)[0] 
    site = site.lower()
    admin_path = ['admin.php','admin/','administrator/','moderator/','webadmin/','adminarea/','bb-admin/','adminLogin/','admin_area/','panel-administracion/','instadmin/','memberadmin/','administratorlogin/','adm/','admin/account.php','admin/index.php','admin/login.php','admin/admin.php','admin/account.php','joomla/administrator','login.php',
    'admin_area/admin.php','admin_area/login.php','siteadmin/login.php','siteadmin/index.php','siteadmin/login.html','admin/account.html','admin/index.html','admin/login.html','admin/admin.html','admin_area/index.php','bb-admin/index.php','bb-admin/login.php','bb-admin/admin.php','admin/home.php','admin_area/login.html','admin_area/index.html','admin/controlpanel.php','admincp/index.asp','admincp/login.asp','admincp/index.html','admin/account.html','adminpanel.html','webadmin.html','w    ebadmin/index.html','webadmin/admin.html','webadmin/login.html','admin/admin_login.html','admin_login.html','panel-administracion/login.html','admin/cp.php','cp.php','administrator/index.php','administrator/login.php','nsw/admin/login.php','webadmin/login.php','admin/admin_login.php','admin_login.php','administrator/account.php','administrator.php','admin_area/admin.html','pages/admin/admin-login.php','admin/admin-login.php','admin-login.php','bb-admin/index.html','bb-admin/login.html','bb-admin/admin.html','admin/home.html','modelsearch/login.php','moderator.php','moderator/login.php','moderator/admin.php','account.php','pages/admin/admin-login.html','admin/admin-login.html','admin-login.html','controlpanel.php','admincontrol.php',    
    'admin/adminLogin.html','adminLogin.html','admin/adminLogin.html','home.html','rcjakar/admin/login.php','adminarea/index.html','adminarea/admin.html','webadmin.php','webadmin/index.php','webadmin/admin.php','admin/controlpanel.html','admin.html','admin/cp.html','cp.html','adminpanel.php','moderator.htm    l','administrator/index.html','administrator/login.html','user.html','administrator/account.html','administrator.html','login.html','m    odelsearch/login.html','moderator/login.html','adminarea/login.html','panel-administracion/index.html','panel-administracion/admin.html','modelsearch/index.html','modelsearch/admin.html','admincontrol/login.html','adm/index.html','adm.html','moderator/admin.html','user.php','account.html','controlpane    l.html','admincontrol.html','panel-administracion/login.php','wp-login.php','adminLogin.php','admin/adminLogin.php','home.php','adminarea/index.php','adminarea/admin.php','adminarea/login.php','panel-administracion/index.php','panel-administracion/admin.php','modelsearch/index.php','modelsearch/admin.php','admincontrol/login.php','adm/admloginuser.php','admloginuser.php','admin2.php',    'admin2/login.php','admin2/index.php','adm/index.php','adm.php','affiliate.php','adm_auth.php    ','memberadmin.php','administratorlogin.php']
    print "\n|-------------------------------------------------------------|"
    print "|                Admin login finder     v2.0                    |"
    print "|---------------------------------------------------------------|\n"
    print "\n[-] %s" % time.strftime("%X")
    print "[+] Target:",site
    print "[+] Checking paths..."
    print
    try:
     for admin in admin_path:
      admin = admin.replace("\n","")
      admin = "/" + admin
      connection = httplib.HTTPConnection(site)
      connection.request("GET",admin)
      response = connection.getresponse()
      print "%s %s %s" % (admin, response.status, response.reason)
    except(KeyboardInterrupt,SystemExit):
     raise
    except:
     pass

    Оригинал тут:
    http://paste.org.ru/?8l6f57

    lancerok, 13 Мая 2013

    Комментарии (14)
  4. Python / Говнокод #12856

    −111

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    73. 73
    74. 74
    75. 75
    76. 76
    77. 77
    78. 78
    79. 79
    80. 80
    81. 81
    82. 82
    83. 83
    84. 84
    85. 85
    86. 86
    87. 87
    88. 88
    89. 89
    90. 90
    91. 91
    92. 92
    93. 93
    94. 94
    95. 95
    topic_names_source.remove(descr) # Говнокод
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)
    topic_names_source.remove(views)
    topic_names_source.remove(descr)
    topic_names_source.remove(pagesnum)
    topic_names_source.remove(replies)

    Мой говнокод, для удаления всех 'TOPIC_DESCR', 'TOPIC_PAGESNUM', 'REPLIES_NUM', 'VIEWS_NUM' из списка. Как по другому сделать это?

    lancerok, 06 Апреля 2013

    Комментарии (21)
  5. Python / Говнокод #12137

    −112

    1. 1
    while h == h

    Делал так раньше, когда не знал про while True

    lancerok, 16 Ноября 2012

    Комментарии (77)