{"action":"created","issue":{"url":"https://api.github.com/repos/adamcaudill/Psychson/issues/14","labels_url":"https://api.github.com/repos/adamcaudill/Psychson/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/adamcaudill/Psychson/issues/14/comments","events_url":"https://api.github.com/repos/adamcaudill/Psychson/issues/14/events","html_url":"https://github.com/adamcaudill/Psychson/issues/14","id":45158786,"number":14,"title":"Restore factory firmware","user":{"login":"yoyebie","id":9057939,"avatar_url":"https://avatars.githubusercontent.com/u/9057939?v=3","gravatar_id":"","url":"https://api.github.com/users/yoyebie","html_url":"https://github.com/yoyebie","followers_url":"https://api.github.com/users/yoyebie/followers","following_url":"https://api.github.com/users/yoyebie/following{/other_user}","gists_url":"https://api.github.com/users/yoyebie/gists{/gist_id}","starred_url":"https://api.github.com/users/yoyebie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoyebie/subscriptions","organizations_url":"https://api.github.com/users/yoyebie/orgs","repos_url":"https://api.github.com/users/yoyebie/repos","events_url":"https://api.github.com/users/yoyebie/events{/privacy}","received_events_url":"https://api.github.com/users/yoyebie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":78,"created_at":"2014-10-07T20:11:15Z","updated_at":"2015-03-21T17:26:15Z","closed_at":null,"body":"Hi,\r\nI got a problem. I have  Patriot 8GB Supersonic Xpress  and I modified it with your script.\r\nI used RubberDucky Hello World payload and it work perfectly, but unfortunately, when I connect my USB drive, the payload executes but the drive won't show up in the Windows Explorer.\r\nSo I'm trying to restore factory firmware in the drive, but it won't work.\r\nSetBootMode works  (I use command DriveCom.exe /drive=D /action=SetBootMode. The drive letter is the one I used when I flashed the firmware for the first time, since now the drive won't show up), the LED on the drive stays on but I still can't flash the factory firmware.\r\nWhen I try to execute command DriveCom.exe /drive=D /action=SendFirmware /burner=BN03V104M.BIN /firmware=fw.bin (where the burner image is the image downloaded from USBDEV.ru and which I used to flash my drive for the first time, and the firmware file is the file I dumped before I flashed my drive) I get the error:\r\nAction specified: SendFirmware\r\nGathering information...\r\nFATAL: System.InvalidOperationException: DeviceIoControl failed: 048F\r\n   w DriveCom.PhisonDevice._SendCommand(SafeFileHandle handle, Byte[] cmd, Byte[] data, Int32 bytesExpected)\r\n   w DriveCom.PhisonDevice.SendCommand(Byte[] cmd, Int32 bytesExpected)\r\n   w DriveCom.PhisonDevice.RequestVendorInfo()\r\n   w DriveCom.PhisonDevice.GetChipType()\r\n   w DriveCom.Startup._GetInfo()\r\n   w DriveCom.Startup._SendFirmware()\r\n   w DriveCom.Startup.Main(String[] args)\r\n\r\nThe same error I get when I try to execute commad GetInfo.\r\n\r\nDid I do something wrong? The payload works, so I suppose that flashing process went well but I'm concerned about the fact that the drive won't show up in Windows Explorer. \r\n\r\nIn addition, I tried to flash the custom firmware but I get the same result. \r\n\r\nWhat can I do to get my USB drive work again? \r\n\r\nThanks in advance for your help.\r\n\r\nKind regards from Poland,\r\nyoyebie\r\n"},"comment":{"url":"https://api.github.com/repos/adamcaudill/Psychson/issues/comments/84402257","html_url":"https://github.com/adamcaudill/Psychson/issues/14#issuecomment-84402257","issue_url":"https://api.github.com/repos/adamcaudill/Psychson/issues/14","id":84402257,"user":{"login":"clayissimo","id":11587972,"avatar_url":"https://avatars.githubusercontent.com/u/11587972?v=3","gravatar_id":"","url":"https://api.github.com/users/clayissimo","html_url":"https://github.com/clayissimo","followers_url":"https://api.github.com/users/clayissimo/followers","following_url":"https://api.github.com/users/clayissimo/following{/other_user}","gists_url":"https://api.github.com/users/clayissimo/gists{/gist_id}","starred_url":"https://api.github.com/users/clayissimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clayissimo/subscriptions","organizations_url":"https://api.github.com/users/clayissimo/orgs","repos_url":"https://api.github.com/users/clayissimo/repos","events_url":"https://api.github.com/users/clayissimo/events{/privacy}","received_events_url":"https://api.github.com/users/clayissimo/received_events","type":"User","site_admin":false},"created_at":"2015-03-21T17:26:15Z","updated_at":"2015-03-21T17:26:15Z","body":"WARNING!\r\n\r\nUsing a Toshiba TrasnMemory-MX 8GB USB 3.0 thumbdrive I can confirm that as @mertsarica  has confirmed - reflashing the dumped firmware bricks the stick! @ka1ias has already found out that dumping the same drive's firmware five times resulted in five different dumps. Something is not working correctly.\r\n\r\nBE AWARE!"}}