8000 Python/recyclebin.py at master · xuhan910903/Python · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"Assembler","path":"Assembler","contentType":"directory"},{"name":"CountMillionCharacters-Variations","path":"CountMillionCharacters-Variations","contentType":"directory"},{"name":"Google Image Downloader","path":"Google Image Downloader","contentType":"directory"},{"name":"Koch Curve","path":"Koch Curve","contentType":"directory"},{"name":"XORcipher","path":"XORcipher","contentType":"directory"},{"name":"async_downloader","path":"async_downloader","contentType":"directory"},{"name":"brickout-game","path":"brickout-game","contentType":"directory"},{"name":"game_of_life","path":"game_of_life","contentType":"directory"},{"name":"linear-algebra-python","path":"linear-algebra-python","contentType":"directory"},{"name":"nodepad","path":"nodepad","contentType":"directory"},{"name":"other_pepole","path":"other_pepole","contentType":"directory"},{"name":"primelib","path":"primelib","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"CountMillionCharacter.py","path":"CountMillionCharacter.py","contentType":"file"},{"name":"CountMillionCharacters-2.0.py","path":"CountMillionCharacters-2.0.py","contentType":"file"},{"name":"Cricket_score.py","path":"Cricket_score.py","contentType":"file"},{"name":"EncryptionTool.py","path":"EncryptionTool.py","contentType":"file"},{"name":"FTP in python","path":"FTP in python","contentType":"file"},{"name":"Google_News.py","path":"Google_News.py","contentType":"file"},{"name":"GroupSms_Way2.py","path":"GroupSms_Way2.py","contentType":"file"},{"name":"LICENSE.md","path":"LICENSE.md","contentType":"file"},{"name":"Monitor Apache","path":"Monitor Apache","contentType":"file"},{"name":"Organise.py","path":"Organise.py","contentType":"file"},{"name":"PORT SCANNER.PY","path":"PORT SCANNER.PY","contentType":"file"},{"name":"Palindrome_Checker.py","path":"Palindrome_Checker.py","contentType":"file"},{"name":"Print_List_of_Even_Numbers.py","path":"Print_List_of_Even_Numbers.py","contentType":"file"},{"name":"QuadraticCalc.py","path":"QuadraticCalc.py","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"ReadFromCSV.py","path":"ReadFromCSV.py","contentType":"file"},{"name":"Shivaansh.txt","path":"Shivaansh.txt","contentType":"file"},{"name":"SimpleStopWatch.py","path":"SimpleStopWatch.py","contentType":"file"},{"name":"Streaming Tweets from Twitter to Database","path":"Streaming Tweets from Twitter to Database","contentType":"file"},{"name":"TTS.py","path":"TTS.py","contentType":"file"},{"name":"TicTacToe.py","path":"TicTacToe.py","contentType":"file"},{"name":"WikipediaModule","path":"WikipediaModule","contentType":"file"},{"name":"backup_automater_services.py","path":"backup_automater_services.py","contentType":"file"},{"name":"batch_file_rename.py","path":"batch_file_rename.py","contentType":"file"},{"name":"calculator.py","path":"calculator.py","contentType":"file"},{"name":"chaos.py","path":"chaos.py","contentType":"file"},{"name":"check_file.py","path":"check_file.py","contentType":"file"},{"name":"check_for_sqlite_files.py","path":"check_for_sqlite_files.py","contentType":"file"},{"name":"check_input.py","path":"check_input.py","contentType":"file"},{"name":"check_internet_con.py","path":"check_internet_con.py","contentType":"file"},{"name":"chicks_n_rabs.py","path":"chicks_n_rabs.py","contentType":"file"},{"name":"create_dir_if_not_there.py","path":"create_dir_if_not_there.py","contentType":"file"},{"name":"cricket_live_score.py","path":"cricket_live_score.py","contentType":"file"},{"name":"daily_checks.py","path":"daily_checks.py","contentType":"file"},{"name":"dec_to_hex.py","path":"dec_to_hex.py","contentType":"file"},{"name":"dice.py","path":"dice.py","contentType":"file"},{"name":"diceV2_dynamic.py","path":"diceV2_dynamic.py","contentType":"file"},{"name":"dice_rolling_simulator.py","path":"dice_rolling_simulator.py","contentType":"file"},{"name":"dir_test.py","path":"dir_test.py","contentType":"file"},{"name":"env_check.py","path":"env_check.py","contentType":"file"},{"name":"ex20.py","path":"ex20.py","contentType":"file"},{"name":"factorial_perm_comp.py","path":"factorial_perm_comp.py","contentType":"file"},{"name":"factors.py","path":"factors.py","contentType":"file"},{"name":"fileinfo.py","path":"fileinfo.py","contentType":"file"},{"name":"find_prime.py","path":"find_prime.py","contentType":"file"},{"name":"folder_size.py","path":"folder_size.py","contentType":"file"},{"name":"four_digit_num_combination.py","path":"four_digit_num_combination.py","contentType":"file"},{"name":"ftp_send_receive.py","path":"ftp_send_receive.py","contentType":"file"},{"name":"get_info_remoute_srv.py","path":"get_info_remoute_srv.py","contentType":"file"},{"name":"get_likes_on_FB.py","path":"get_likes_on_FB.py","contentType":"file"},{"name":"get_youtube_view.py","path":"get_youtube_view.py","contentType":"file"},{"name":"google.py","path":"google.py","contentType":"file"},{"name":"internet_connection_py3","path":"internet_connection_py3","contentType":"file"},{"name":"jee_result.py","path":"jee_result.py","contentType":"file"},{"name":"kmp_str_search.py","path":"kmp_str_search.py","contentType":"file"},{"name":"life","path":"life","contentType":"file"},{"name":"logs.py","path":"logs.py","contentType":"file"},{"name":"magic8ball.py","path":"magic8ball.py","contentType":"file"},{"name":"meme_maker.py","path":"meme_maker.py","contentType":"file"},{"name":"merge.py","path":"merge.py","contentType":"file"},{"name":"move_files_over_x_days.py","path":"move_files_over_x_days.py","contentType":"file"},{"name":"movie_details","path":"movie_details","contentType":"file"},{"name":"multiplication_table.py","path":"multiplication_table.py","contentType":"file"},{"name":"nDigitNumberCombinations.py","path":"nDigitNumberCombinations.py","contentType":"file"},{"name":"new_script.py","path":"new_script.py","contentType":"file"},{"name":"nmap_scan.py","path":"nmap_scan.py","contentType":"file"},{"name":"nslookup_check.py","path":"nslookup_check.py","contentType":"file"},{"name":"osinfo.py","path":"osinfo.py","contentType":"file"},{"name":"password_cracker.py","path":"password_cracker.py","contentType":"file"},{"name":"ping_servers.py","path":"ping_servers.py","contentType":"file"},{"name":"ping_subnet.py","path":"ping_subnet.py","contentType":"file"},{"name":"polygon.py","path":"polygon.py","contentType":"file"},{"name":"portscanner.py","path":"portscanner.py","contentType":"file"},{"name":"powerdown_startup.py","path":"powerdown_startup.py","contentType":"file"},{"name":"powerup_checks.py","path":"powerup_checks.py","contentType":"file"},{"name":"prison_break_scrapper.py","path":"prison_break_scrapper.py","contentType":"file"},{"name":"pscheck.py","path":"pscheck.py","contentType":"file"},{"name":"psunotify.py","path":"psunotify.py","contentType":"file"},{"name":"puttylogs.py","path":"puttylogs.py","contentType":"file"},{"name":"python_sms.py","path":"python_sms.py","contentType":"file"},{"name":"random-sentences.py","path":"random-sentences.py","contentType":"file"},{"name":"recyclebin.py","path":"recyclebin.py","contentType":"file"},{"name":"script_count.py","path":"script_count.py","contentType":"file"},{"name":"script_listing.py","path":"script_listing.py","contentType":"file"},{"name":"sendemail.py","path":"sendemail.py","contentType":"file"},{"name":"serial_scanner.py","path":"serial_scanner.py","contentType":"file"},{"name":"sierpinski_triangle.py","path":"sierpinski_triangle.py","contentType":"file"},{"name":"snake.py","path":"snake.py","contentType":"file"},{"name":"spiralmatrix.py","path":"spiralmatrix.py","contentType":"file"},{"name":"spotlight.py","path":"spotlight.py","contentType":"file"},{"name":"sqlite_check.py","path":"sqlite_check.py","contentType":"file"},{"name":"sqlite_table_check.py","path":"sqlite_table_check.py","contentType":"file"},{"name":"start-server.py","path":"start-server.py","contentType":"file"},{"name":"test","path":"test","contentType":"file"},{"name":"testlines.py","path":"testlines.py","contentType":"file"},{"name":"tf_idf_generator.py","path":"tf_idf_generator.py","contentType":"file"},{"name":"timymodule.py","path":"timymodule.py","contentType":"file"},{"name":"tweeter.py","path":"tweeter.py","contentType":"file"},{"name":"two_num.py","path":"two_num.py","contentType":"file"},{"name":"webcam.py","path":"webcam.py","contentType":"file"},{"name":"wiki_random.py","path":"wiki_random.py","contentType":"file"},{"name":"work_connect.py","path":"work_connect.py","contentType":"file"},{"name":"xkcd_downloader.py","path":"xkcd_downloader.py","contentType":"file"},{"name":"youtube-downloader fast.py","path":"youtube-downloader fast.py","contentType":"file"},{"name":"youtube.py","path":"youtube.py","contentType":"file"}],"totalCount":119}},"fileTreeProcessingTime":6.697119,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":133788464,"defaultBranch":"master","name":"Python","ownerLogin":"xuhan910903","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2018-05-17T09:11:18.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/4045768?v=4","public":true,"private":false,"isOrgOwned":false},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1616063274.538811","canEdit":false,"refType":"branch","currentOid":"28b25d4b2a0c484b8e905fd54ec5ffeecf6460c8"},"path":"recyclebin.py","currentUser":null,"blob":{"rawLines":["# Script Name\t\t: recyclebin.py\r","# Author\t\t\t\t: Craig Richards\r","# Created\t\t\t\t: 07th June 2013\r","# Last Modified\t\t: \r","# Version\t\t\t\t: 1.0\r","\r","# Modifications\t\t: \r","\r","# Description\t\t\t: Scans the recyclebin and displays the files in there, originally got this script from the Violent Python book\r","\r","import os\t\t\t\t\t# Load the Module\r","import optparse\t\t\t# Load the Module\r","from _winreg import *\t# Load the Module\r","\r","def sid2user(sid):\t\t# Start of the function to gather the user\r"," try:\r"," key = OpenKey(HKEY_LOCAL_MACHINE, \"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList\" + '\\\\' + sid)\r"," (value, type) = QueryValueEx(key, 'ProfileImagePath')\r"," user = value.split('\\\\')[-1]\r"," return user\r"," except:\r"," return sid\r","\r","\r","def returnDir():\t\t\t# Start of the function to search through the recyclebin\r"," dirs=['c:\\\\Recycler\\\\','C:\\\\Recycled\\\\','C:\\\\$RECYCLE.BIN\\\\']\r"," #dirs=['c:\\\\$RECYCLE.BIN\\\\']\r"," for recycleDir in dirs:\r"," if os.path.isdir(recycleDir):\r"," return recycleDir\r"," return None\r"," \r","def findRecycled(recycleDir):\t# Start of the function, list the contents of the recyclebin\r"," dirList = os.listdir(recycleDir)\r"," for sid in dirList:\r"," files = os.listdir(recycleDir + sid)\r"," user = sid2user(sid)\r"," print '\\n[*] Listing Files for User: ' + str(user)\r"," for file in files:\r"," print '[+] Found File: ' + str(file)\r","\r","def main():\r"," recycleDir = returnDir()\r"," findRecycled(recycleDir)\r"," \r","if __name__ == '__main__':\r"," main()"],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/xuhan910903/Python/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"recyclebin.py","displayUrl":"https://github.com/xuhan910903/Python/blob/master/recyclebin.py?raw=true","headerInfo":{"blobSize":"1.43 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"435935d","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fxuhan910903%2FPython%2Fblob%2Fmaster%2Frecyclebin.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"47","truncatedSloc":"38"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Python","languageID":303,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/xuhan910903/Python/blob/master/recyclebin.py","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/xuhan910903/Python/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/xuhan910903/Python/raw/refs/heads/master/recyclebin.py","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":null},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/xuhan910903/Python/branches":{"post":"ig0HucWbVmXy-BaGjVFH2xIfKIBxvVIQvPTU8jqoaQzuwM674s8pcsKvwbCg9ojoqCREdNlxO71YiCmgOet6AQ"},"/repos/preferences":{"post":"2WUDKw6MCq-FVTvIjgneh7OmYRxDVHC5M9p8-mdEV-Z7_X7W3egW4nhdUsbmqQutzBnMcuYX_1Mw6alJKJM1KA"}}},"title":"Python/recyclebin.py at master · xuhan910903/Python","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1b17b3e7786a.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0