Prodigiously commented linker script by Thea Flowers.
Original file: https://github.com/theacodes/Winterbloom_Castor_and_Pollux/blob/master/firmware/scripts/samd21g18a.ld
Prodigiously commented linker script by Thea Flowers.
Original file: https://github.com/theacodes/Winterbloom_Castor_and_Pollux/blob/master/firmware/scripts/samd21g18a.ld
Having a vendor-programmed unique device ID in microcontrollers is a requirement for numerous use cases. These including firmware update, many security uses, wired and wireless networking, and so on.
This survey attempts to document unique ID capabilities in a number of common (mostly) Arm Cortex-M device families.
| #include <sys/time.h> | |
| /** | |
| * Returns the current time in microseconds. | |
| */ | |
| long get_microseconds(){ | |
| struct timeval currentTime; | |
| gettimeofday(¤tTime, NULL); | |
| return currentTime.tv_sec * (int)1e6 + currentTime.tv_usec; | |
| } |
| # Restart into recovery | |
| csrutil disable | |
| # Restart into normal user mode | |
| sudo mount -uw / | |
| sudo mkdir /System/Library/LaunchAgentsDisabled | |
| sudo mkdir /System/Library/LaunchDaemonsDisabled | |
| sudo mv /System/Library/LaunchAgents/com.apple.ManagedClientAgent.agent.plist /System/Library/LaunchAgentsDisabled | |
| sudo mv /System/Library/LaunchAgents/com.apple.ManagedClientAgent.enrollagent.plist /System/Library/LaunchAgentsDisabled | |
| sudo mv /System/Library/LaunchDaemons/com.apple.ManagedClient.cloudconfigurationd.plist /System/Library/LaunchDaemonsDisabled | |
| sudo mv /System/Library/LaunchDaemons/com.apple.ManagedClient.enroll.plist /System/Library/LaunchDaemonsDisabled |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | |
| "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>BBEditDocumentType</key> | |
| <string>CodelessLanguageModule</string> | |
| <key>BBLMColorsSyntax</key> | |
| <true/> | |
| <key>BBLMIsCaseSensitive</key> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | |
| "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>BBEditDocumentType</key> | |
| <string>CodelessLanguageModule</string> | |
| <key>BBLMColorsSyntax</key> | |
| <true/> | |
| <key>BBLMIsCaseSensitive</key> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | |
| "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>BBEditDocumentType</key> | |
| <string>CodelessLanguageModule</string> | |
| <key>BBLMColorsSyntax</key> | |
| <true/> | |
| <key>BBLMIsCaseSensitive</key> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | |
| "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>BBEditDocumentType</key> | |
| <string>CodelessLanguageModule</string> | |
| <key>BBLMColorsSyntax</key> | |
| <true/> | |
| <key>BBLMIsCaseSensitive</key> |
Using a static IP address makes it a hell of a lot easier to ssh into your vm.
Let's say you have a guest machine with the name foobar and you keep your guest machine images in ~/Documents/Virtual\ Machines/. To determine the MAC address for this VM, you can run:
cat ~/Documents/Virtual\ Machines/foobar.vmwarevm/foobar.vmx | grep ethernet0.generatedAddress