{"action":"created","issue":{"url":"https://api.github.com/repos/sithis993/Crypter/issues/52","repository_url":"https://api.github.com/repos/sithis993/Crypter","labels_url":"https://api.github.com/repos/sithis993/Crypter/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/sithis993/Crypter/issues/52/comments","events_url":"https://api.github.com/repos/sithis993/Crypter/issues/52/events","html_url":"https://github.com/sithis993/Crypter/issues/52","id":311743155,"number":52,"title":"BoxSizer.AddSpacer() error","user":{"login":"GaryCurran","id":5924030,"avatar_url":"https://avatars1.githubusercontent.com/u/5924030?v=4","gravatar_id":"","url":"https://api.github.com/users/GaryCurran","html_url":"https://github.com/GaryCurran","followers_url":"https://api.github.com/users/GaryCurran/followers","following_url":"https://api.github.com/users/GaryCurran/following{/other_user}","gists_url":"https://api.github.com/users/GaryCurran/gists{/gist_id}","starred_url":"https://api.github.com/users/GaryCurran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaryCurran/subscriptions","organizations_url":"https://api.github.com/users/GaryCurran/orgs","repos_url":"https://api.github.com/users/GaryCurran/repos","events_url":"https://api.github.com/users/GaryCurran/events{/privacy}","received_events_url":"https://api.github.com/users/GaryCurran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-05T19:40:38Z","updated_at":"2018-04-07T19:38:37Z","closed_at":null,"author_association":"NONE","body":"HI,\r\n\r\nI am working on an MSc Cyber Security and found this, it looks really good. I have installed all of the packages and I am getting the following error running the Builder.pyw. Any help would be very appreciative. \r\n\r\n======================================================================\r\n          ***    ATTENTION   ***\r\nThis messaging protocol is deprecated. This module, and hence arg1\r\nmessaging protocol, will be removed in v3.4 of PyPubSub. Please make\r\nthe necessary changes to your code so that it no longer requires this\r\nmodule. The pypubsub documentation provides steps that may be useful\r\nto minimize the chance of introducing bugs in your application.\r\n======================================================================\r\n\r\nC:\\Users\\WinSlave\\Downloads\\Crypter-master\\Crypter-master\\build\\ExeBuilder\\BuilderGuiAbsBase.py:22: wxPyDeprecationWarning: Cal\r\nse SetSizeHints instead.\r\n  self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize )\r\nC:\\Users\\WinSlave\\Downloads\\Crypter-master\\Crypter-master\\build\\ExeBuilder\\BuilderGuiAbsBase.py:42: wxPyDeprecationWarning: Cal\r\nse SetToolTip instead.\r\n  self.LoadFilePicker.SetToolTipString( u\"Load an existing configuration file\" )\r\nTraceback (most recent call last):\r\n  File \"Builder.pyw\", line 10, in <module>\r\n    go = ExeBuilder.ExeBuilder()\r\n  File \"C:\\Users\\WinSlave\\Downloads\\Crypter-master\\Crypter-master\\build\\ExeBuilder\\ExeBuilder.py\", line 31, in __init__\r\n    builder_gui = Gui()\r\n  File \"C:\\Users\\WinSlave\\Downloads\\Crypter-master\\Crypter-master\\build\\ExeBuilder\\Gui.py\", line 40, in __init__\r\n    MainFrame.__init__( self, parent=None )\r\n  File \"C:\\Users\\WinSlave\\Downloads\\Crypter-master\\Crypter-master\\build\\ExeBuilder\\BuilderGuiAbsBase.py\", line 47, in __init__\r\n    bSizer49.AddSpacer( ( 0, 0), 1, wx.EXPAND, 5 )\r\nTypeError: BoxSizer.AddSpacer(): argument 1 has unexpected type 'tuple'\r\n\r\n\r\nMany thanks."},"comment":{"url":"https://api.github.com/repos/sithis993/Crypter/issues/comments/379494007","html_url":"https://github.com/sithis993/Crypter/issues/52#issuecomment-379494007","issue_url":"https://api.github.com/repos/sithis993/Crypter/issues/52","id":379494007,"user":{"login":"sithis993","id":22727993,"avatar_url":"https://avatars3.githubusercontent.com/u/22727993?v=4","gravatar_id":"","url":"https://api.github.com/users/sithis993","html_url":"https://github.com/sithis993","followers_url":"https://api.github.com/users/sithis993/followers","following_url":"https://api.github.com/users/sithis993/following{/other_user}","gists_url":"https://api.github.com/users/sithis993/gists{/gist_id}","starred_url":"https://api.github.com/users/sithis993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sithis993/subscriptions","organizations_url":"https://api.github.com/users/sithis993/orgs","repos_url":"https://api.github.com/users/sithis993/repos","events_url":"https://api.github.com/users/sithis993/events{/privacy}","received_events_url":"https://api.github.com/users/sithis993/received_events","type":"User","site_admin":false},"created_at":"2018-04-07T19:38:37Z","updated_at":"2018-04-07T19:38:37Z","author_association":"OWNER","body":"Great! glad to see it's working :-). I should have done a bit of work with venv to maybe help with these dependency issues... but I didn't know it too well at the time when I was creating this project. As a tip, if you use the [UPX packer](https://upx.github.io/) you can get the filesize down to about 7MB.\r\n\r\nIf you take a look at the following, it's quite easy to understand. This is taken from the __init__ method of the Crypter class in [Main.py](https://github.com/sithis993/Crypter/blob/master/Crypter/Main.py), which is pretty much where everything happens.\r\n\r\n![image](https://user-images.githubusercontent.com/22727993/38459286-c50a5dc8-3a9f-11e8-8029-8342f0828f24.png)\r\n\r\nYou can see from this image the steps that are taken, and in what order (I've ignored some of the config stuff here, like disabling Task Manager, deleting shadow copies and such):\r\n1. Check to see if we've already run and encrypted some files, If we haven't:\r\n  - Startup the crypto libraries and generate our AES key to use for encryption\r\n    - This also writes the AES key to a file called key.txt in the same directory as the Crypter.exe file\r\n  - Scan the file system and get a list of files to encrypt (absolute file paths)\r\n  - Iterate through the list and encrypt each file\r\n  - Open the Crypter GUI with the ransom message\r\n\r\n2. If we've already run and encrypted files:\r\n  - Just start the GUI\r\n    - This check is just in case the user closes the GUI and reopens it, so that we don't try to re-encrypt any files.\r\n\r\nHopefully this is of some use :-)"}}
{"actor":{"display_login":"sithis993"}}