Some notes and techniques for reverse engineering Webpack apps
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sudoku = LAMBDA(Puzzle, | |
LET( | |
Options, MAKEARRAY(27, 27, LAMBDA(r, c, MOD(c - 1, 3) + 1 + 3 * MOD(r - 1, 3))), | |
numgrid, SEQUENCE(9, 9, 1), | |
UpdatedPuzzle, LET( | |
ApplyLogic, LAMBDA(ApplyLogic, Puzzle, Options, | |
LET( | |
Candidates, MAKEARRAY( | |
27, | |
27, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
solver=LAMBDA(grid, | |
LET( | |
numbers, SEQUENCE(9), | |
numgrid, SEQUENCE(9,9,0), | |
vgrid, TOCOL(grid*1), | |
pos, XMATCH(0,vgrid)-1, | |
IF( | |
ISNA(pos), grid, | |
LET( | |
i,INT(pos/9), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wx | |
class CustomFrame(wx.Frame): | |
def __init__(self, parent, title, image_dimensions): | |
super(CustomFrame, self).__init__(parent, title=title, style=wx.NO_BORDER) | |
self.SetBackgroundColour(wx.Colour(255, 255, 255)) # Set background color | |
# Load custom window images | |
self.SetIcon(wx.Icon("window_icon.ico", wx.BITMAP_TYPE_ICO)) | |
self.frame_images = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wx | |
class CustomFrame(wx.Frame): | |
def __init__(self, parent, title): | |
super(CustomFrame, self).__init__(parent, title=title, size=(600, 400), style=wx.DEFAULT_FRAME_STYLE) | |
self.SetBackgroundColour(wx.Colour(255, 255, 255)) # Set background color | |
self.Bind(wx.EVT_PAINT, self.on_paint) | |
def on_paint(self, event): | |
dc = wx.PaintDC(self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wx | |
class CustomFrame(wx.Frame): | |
def __init__(self, parent, title): | |
super(CustomFrame, self).__init__(parent, title=title, size=(600, 400), style=wx.DEFAULT_FRAME_STYLE) | |
self.SetBackgroundColour(wx.Colour(255, 255, 255)) # Set background color | |
self.title_bar_image = wx.Image("title_bar.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap() | |
self.close_button_image = wx.Image("close_button.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap() | |
self.Bind(wx.EVT_PAINT, self.on_paint) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wx | |
class CustomFrame(wx.Frame): | |
def __init__(self, parent, title): | |
super(CustomFrame, self).__init__(parent, title=title, size=(600, 400), style=wx.DEFAULT_FRAME_STYLE) | |
self.SetBackgroundColour(wx.Colour(255, 255, 255)) # Set background color | |
self.corner_image = wx.Image("corner.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap() | |
self.top_bottom_image = wx.Image("top_bottom.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap() | |
self.left_right_image = wx.Image("left_right.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap() | |
self.Bind(wx.EVT_PAINT, self.on_paint) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wx | |
class CustomFrame(wx.Frame): | |
def __init__(self, parent, title): | |
super(CustomFrame, self).__init__(parent, title=title, size=(600, 400), style=wx.DEFAULT_FRAME_STYLE) | |
self.SetBackgroundColour(wx.Colour(255, 255, 255)) # Set background color | |
self.corner_image = wx.Image("corner.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap() | |
self.top_image = wx.Image("top.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap() | |
self.bottom_image = wx.Image("bottom.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap() | |
self.left_image = wx.Image("left.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Assuming you have followed all the steps to install / setup WSL2 -> https://docs.microsoft.com/en-us/windows/wsl/install-win10 | |
**Tested on Ubuntu 20.04** | |
Step 1 - Find out default gateway and DNS servers | |
- Navigate to `Control Panel\Network and Internet\Network Connections` | |
- Right click on relevant connection type WiFi or Ethernet and select `Status` | |
- Status screen will be displayed, click on `Details` button | |
- Network Connection details screen will be displayed | |
- Note down `IPv4 default gateway` and `IPv4 DNS Servers` if available |
NewerOlder