Macos Script For Stolen Laptop


This script declares the #!/bin/sh shebang and it will work fine on macOS with bash-as-sh.% shtest.sh still good However, when you try to run it with zsh-as-sh or dash-as-sh, it will fail. And my experience with a stolen computer was that even having Find My Mac enabled didn't help me get the computer back. The police would not use the location information to recover the computer. It is mostly for finding a lost computer or deleting your data so the thieves cannot gain access to your data.

Track a stolen laptop via a posted IP number | 9 comments | Create New Account
Click here to return to the 'Track a stolen laptop via a posted IP number' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.

I found a shareware on Versiontracker that does this, also; Secure Notebook. I haven't used it myself, but the reviews are good. Is it worth $12? YMMV.

You could also run one of the dyndns.org clients which updates the system's
address at their DNS servers. Then you just need to ssh into your-name.dyndns.org
or your own domain name if you so own one.
The client software periodically checks your ip address and makes an update to dyndns.org's system, all running quietly in the background as a startup process.
Of course, if someone were to steal your Mac OS X computer, wouldn't they need to do some pretty major reinstallation to get past your administrator password? Would this be likely to break any automatic system such as this that was installed?
I would think that an OS X theif would probably end up wiping the disk and reinsalling the OS before selling the system. But maybe they would boot it a few times and allow you to track it before it got wiped.

As noted in MacAddict.
Brigadoon Software offers a product called PC PhoneHome that sends you an email message containing the current IP address. It's available in a free version which won't survive a disk format or a $30 version which will.
Why not save yourself thirty bucks and have crontab do the work for you?

    Setup crontab to email your ip address every hour:

  1. At the terminal, type: sudo -s to become the root user.
  2. Type your password.
  3. At the root# prompt, type: pico /etc/sendip.ct
  4. In pico, type the following: 0 * * * * /sbin/ifconfig -a | mail email@domain.com
  5. Press ctrl x to exit.
  6. Press y to save.
  7. At the root# prompt, type: chmod 500 /etc/sendip.ct
  8. To activate the cron job we just created, type: crontab /etc/sendip.ct

    To list the active crontab(s), at the terminal type: crontab -l
    {each user can have their own crontab(s)}
    To stop crontab, type: crontab -r


The problem with ifconfig is if you are behind a firewall it will return your local IP address.

Don't get fooled: if you read carefully the macphonehome FAQ's, you discover that the only protection against disk formatting is asking the user to set up an Apple Firmware Password to prevent boot from other drive...

This is a good idea, but I question the validity of using something as ephemeral as an IP address.

If someone is smart enough to get around your account password (presumably by hacking root in single-user mode), they're certainly smart enough to change the IP address. And if they're not that smart, then they're just going to wipe the system with a new install, and therefore have an entirely new IP address anyway.

I'd think a better way of tracking your machine would be to keep track of the MAC address of your Ethernet or modem... Unfortunately, I'm not tech-savvy enough to know how to script such a tool. Some use of the 'ifconfig en0' command, perhaps? Just a thought.

The point of this IS to see what the ip has changed to, so you can track it down. What would be the point of keeping track of the MAC address? The MAC address never changes, well, unless you decide you want to change it to mess with your cable modem company or something.
In any case, you want two pieces of info, the actual ip of the machine, and the IP where it's coming from (like if it's behind a NAT device of some sort). I came up with an idea like this about 5 or 6 years ago, and I actually wrote a bunch of code for it (for windows). Alas, my hard drive with the code on it died, and I got a job that took up all my time so it never got finished. If anyone has a 3.8GB Quantum fireball w/ a good circuit board on it, I'll buy it from you. :)

Thank you for this. My ISP keeps changing my IP on me, almost daily. Makes it hard to login remotely. One problem I had with getting this to work was when I copied the text for the .netrc file, it put an extra return after each line with text. There cant be any blank lines between the lines of text or the macro wont work. In fact it will go into an semi-infinite loop and probably bug the server administrator of the ftp server you are connecting to.
The other problem I ran into was that the grep search wasnt finding the correct spot. I ended up changing:
grep –A 3 'Your IP Address is:' ~/scripts/sendIP/File1 > ~/scripts/sendIP/File2
to
grep –A 3 'Address is:' ~/scripts/sendIP/File1 > ~/scripts/sendIP/File2

When you upgrade to macOS Catalina, you get more of everything you love about Mac. Experience dedicated apps for music, TV, and podcasts. Smart new features in the apps you use every day. And Sidecar, which lets you use iPad as a second Mac display. Best of all, upgrading is free and easy.

Chances are, your Mac can run macOS Catalina.

Mac computers with Metal-capable graphics processors (GPUs) can upgrade to macOS Catalina.

Make sure you’re ready to upgrade.

Before you upgrade, we recommend that you back up your Mac. Then, if your Mac is running OS X Mavericks 10.9 or later, you can upgrade directly to macOS Catalina.

Upgrading is free. And easier than you think.

Upgrading from macOS Mojave?

Go to Software Update in System Preferences to find the macOS Catalina upgrade. Click Upgrade Now and follow the onscreen instructions to begin your upgrade. If you don’t have broadband access, you can upgrade your Mac at any Apple Store.

Upgrading from an older version of macOS?

If you’re running High Sierra (10.13), Sierra (10.12), or El Capitan (10.11), upgrade to macOS Catalina from the App Store. If you’re running Lion (10.7) or Mountain Lion (10.8), you will need to upgrade to El Capitan (10.11) first. If you don’t have broadband access, you can upgrade your Mac at any Apple Store.

  • OS X 10.9 or later
  • 4GB of memory
  • 12.5GB of available storage (OS X El Capitan 10.11.5 or later)*
  • Some features require an Apple ID; terms apply.
  • Some features require a compatible internet service provider; fees may apply.

For details about your Mac model, click the Apple icon at the top left of your screen and choose About This Mac. These Mac models are compatible with macOS Catalina:

  • MacBook (Early 2015 or newer)
  • MacBook Air (Mid 2012 or newer)
  • MacBook Pro (Mid 2012 or newer)
  • Mac mini (Late 2012 or newer)
  • iMac (Late 2012 or newer)
  • iMac Pro (2017)
  • Mac Pro (Late 2013 or newer)

Siri

Requires a broadband internet connection and microphone (built-in or external).

Hey Siri

Supported by the following Mac models:

  • MacBook Pro (2018 or newer)
  • MacBook Air (2018 or newer)
  • iMac Pro

Dictation, Voice Control, and Voice Memos

Requires a microphone (built-in or external).

Spotlight Suggestions

Requires a broadband internet connection.

Gestures

Requires a Multi-Touch trackpad, Force Touch trackpad, Magic Trackpad, or Magic Mouse.

Force Touch gestures require a Force Touch trackpad.

VoiceOver gestures require a Multi-Touch trackpad, Force Touch trackpad, or Magic Trackpad.

Photo Booth

Requires a FaceTime or iSight camera (built-in or external), or USB video class (UVC) camera.

FaceTime

Audio calls require a microphone (built-in or external) and broadband internet connection.

Video calls require a built-in FaceTime camera, an iSight camera (built-in or external), or a USB video class (UVC) camera; and broadband internet connection.

Apple TV

High Dynamic Range (HDR) video playback is supported by the following Mac models:

Stolen
  • MacBook Pro (2018 or newer)
  • iMac Pro (2017)
  • Mac Pro (2019) with Pro Display XDR

Dolby Atmos soundtrack playback is supported by the following Mac models:

  • MacBook Air (2018 or newer)
  • MacBook Pro (2018 or newer)

Sidecar

Supported by the following Mac models:

  • MacBook (2016 or newer)
  • MacBook Air (2018 or newer)
  • MacBook Pro (2016 or newer)
  • Mac mini (2018 or newer)
  • iMac (late 2015 or newer)
  • iMac Pro (2017 or newer)
  • Mac Pro (2019)

Supported by all iPad models with Apple Pencil support:

  • 12.9-inch iPad Pro
  • 11-inch iPad Pro
  • 10.5-inch iPad Pro
  • 9.7-inch iPad Pro
  • iPad (6th generation or later)
  • iPad mini (5th generation)
  • iPad Air (3rd generation)

Continuity Camera

Requires an iPhone or iPad with a Lightning connector and iOS 12 or later.

Continuity Sketch and Continuity Markup

Requires an iPhone with iOS 13 or an iPad with iPadOS.

Handoff

Requires an iPhone or iPad with a Lightning connector and iOS 8 or later.

Instant Hotspot

Requires an iPhone or iPad with cellular connectivity, a Lightning connector, and iOS 8.1 or later. Requires Personal Hotspot service through your carrier.

Universal Clipboard

Requires an iPhone or iPad with a Lightning connector and iOS 10 or later.

Auto Unlock

Supported by Mac models introduced in mid 2013 or later.

Requires an Apple Watch with watchOS 3 or later or an iPhone 5 or later.

Approve with Apple Watch

Supported by Mac models introduced in mid 2013 or later.

Requires an Apple Watch with watchOS 6 or later or an iPhone 6s or later with iOS 13.

Apple Pay on the Web

Requires MacBook Pro with Touch Bar, an iPhone 6 or later with iOS 10 or later, or an Apple Watch with watchOS 3 or later.

Phone Calling

Requires an iPhone with iOS 8 or later and an activated carrier plan.

SMS

Requires an iPhone with iOS 8.1 or later and an activated carrier plan.

Home

Requires an iPhone with iOS 12 or later and a configured Home app.

AirDrop

AirDrop to iOS and iPadOS devices requires an iPhone or iPad with a Lightning connector and iOS 7 or later.

AirPlay

Macos Shell Script

AirPlay Mirroring requires an Apple TV (2nd generation or later).

AirPlay for web video requires an Apple TV (2nd generation or later).

Peer-to-peer AirPlay requires a Mac (2012 or later) and an Apple TV (3rd generation rev A, model A1469 or later) with Apple TV software 7.0 or later.

Time Machine

Requires an external storage device (sold separately).

Power Nap

Supported by the following Mac models:

  • MacBook (Early 2015 or newer)
  • MacBook Air (Mid 2012 or newer)
  • MacBook Pro with Retina display (Mid 2012 or newer)
  • Mac mini (Late 2012 or newer)
  • iMac (Late 2012 or newer)
  • iMac Pro (2017)
  • Mac Pro (Late 2013 or newer)

Boot Camp

Allows Boot Camp installations of Windows 10 on supported Mac models.

Exchange Support

Requires Microsoft Office 365, Exchange 2016, Exchange 2013, or Exchange Server 2010. Installing the latest Service Packs is recommended.

Windows Migration

Supports OS X 10.7 or later and Windows 7 or later.

Macos Script For Stolen Laptop Free

App Store

Available only to persons age 13 or older in the U.S. and many other countries and regions.

Macos Script For Stolen Laptop Pc

  • Apple Books
  • Apple News
  • App Store
  • Automator
  • Calculator
  • Calendar
  • Chess
  • Contacts
  • Dictionary
  • DVD Player
  • FaceTime
  • Find My
  • Font Book
  • Home
  • Image Capture
  • Launchpad
  • Mail
  • Maps
  • Messages
  • Mission Control
  • Music
  • Notes
  • Photo Booth
  • Photos
  • Podcasts
  • Preview
  • QuickTime Player
  • Reminders
  • Safari
  • Siri
  • Stickies
  • Stocks
  • System Preferences
  • TextEdit
  • Time Machine
  • TV
  • Voice Memos
  • Activity Monitor
  • AirPort Utility
  • Audio MIDI Setup
  • Bluetooth File Exchange
  • Boot Camp Assistant
  • ColorSync Utility
  • Console
  • Digital Color Meter
  • Disk Utility
  • Grapher
  • Keychain Access
  • Migration Assistant
  • Screenshot
  • Screen Time
  • Script Editor
  • Sidecar
  • System Information
  • Terminal
  • VoiceOver Utility
  • Arabic
  • Catalan
  • Croatian
  • Simplified Chinese
  • Traditional Chinese
  • Traditional Chinese (Hong Kong)
  • Czech
  • Danish
  • Dutch
  • English (Australia)
  • English (UK)
  • English (U.S.)
  • Finnish
  • French
  • French (Canada)
  • German
  • Greek
  • Hebrew
  • Hindi
  • Hungarian

Macos Script For Stolen Laptop Mac

  • Indonesian
  • Italian
  • Japanese
  • Korean
  • Malay
  • Norwegian
  • Polish
  • Brazilian Portuguese
  • Portuguese
  • Romanian
  • Russian
  • Slovak
  • Spanish
  • Spanish (Latin America)
  • Swedish
  • Thai
  • Turkish
  • Ukrainian
  • Vietnamese