Coder Social home page Coder Social logo

gensmbios's Introduction

GenSMBIOS

Py script that uses acidanthera's macserial to generate SMBIOS and optionally saves them to a plist.


To install:

Do the following one line at a time in Terminal:

git clone https://github.com/corpnewt/GenSMBIOS
cd GenSMBIOS
chmod +x GenSMBIOS.command

Then run with either ./GenSMBIOS.command or by double-clicking GenSMBIOS.command


Thanks to:

  • acidanthera and crew for the macserial application

gensmbios's People

Contributors

corpnewt avatar webfalter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gensmbios's Issues

Generate Country / Date specific SN

I am trying to generate SN and all serials start with C17 for my specified model, those all resides within China

Country: C17 - China
Year: S - 2016
Week: 1 - 27 (01.07.2016-07.07.2016)
Line: 0Z5 - 1127 (copy 1)

I am trying to make iMessage work and I doubt the code I always generate may not helping to make it work

Issue generating MacPro7,1 serials - incorrect length

I have attempted to generate dozens of MacPro7,1 serials, and noticed NONE are the correct length (if I go back into GENSMBIOS it tells me this when looking at my current SMBIOS data).

Plugging serials into the Apple check coverage page yields that it cannot check the serial (as it's invalid for that model and not the right length).

I also noticed that sometimes it generates the same serial over and over.

Is there any special inputs for MacPro7,1 (such as year/country) to generate the serials correctly?

Is there a bug, or am I doing it incorrectly?

AttributeError: 'module' object has no attribute 'get_default_verify_paths'

Running on MacOS 10.14.6 (Mojave) with python 2.7.5
Traceback (most recent call last):
File "./GenSMBIOS.command", line 439, in
s = Smbios()
File "./GenSMBIOS.command", line 14, in init
self.d = downloader.Downloader()
File "/Volumes/Users/Users/patnaik/Desktop/Hackintosh/Big Sur/GenSMBIOS-master/Scripts/downloader.py", line 18, in init
cafile = ssl.get_default_verify_paths().openssl_cafile
AttributeError: 'module' object has no attribute 'get_default_verify_paths'

This happens with many of your utilities that I tried.

Plist file not found file missing

Running with sudo py3 on ubunutu latest lts. I ran chmod 777 on the file, no effect.

 #######################################################
 #                    File Missing                     #
#######################################################

Plist file not found:

file:///mnt/wd_1tb_nvme/VM/GenSMBIOS/config.plist

Unable to Install/Update MacSerial

Hey corpnewt, thanks very much for the work you do on this tooling.

I'm working with OpenCore on a common, inexpensive prebuilt from HP, a z230 workstation. Following https://khronokernel-2.gitbook.io/opencore-vanilla-desktop-guide/intel-config.plist/haswell#platforminfo - but I'm not clear that I've done this right. I've booted a Lubuntu 18.10 liveUSB and am running GenSMBIOS on the z230. This machine has internet connectivity (I just git cloned genSMBIOS to it) and I'm running an interactive sudo session in the live session, so I'm operating as root.

I just ran GenSMBIOS, selected option 1, and got this output:

  #######################################################
 #                 Getting MacSerial                   #
#######################################################

Gathering latest macserial info...
We ran into some problems :(

'linux2'

Cleaning up...

Done.

SMBIOS Generation.

I think their is some bug in GenSMBIOS, previously when we generate SMBIOS there was a chances to get a genuine serial number with "Purchase Date not validate". But, now this is not working out at all. All serial numbers generated by GenSMBIOS is not workable. Any solution will be appreciated.

(Network Issue) Error

Checked internet connection but getting these errors:

  1. Install/Update MacSerial - Gathering latest macserial info...Error checking for updates (network issue)
  2. Generate SMBIOS - Gathering latest macserial info...Error checking for updates (network issue)
  3. List Current SMBIOS - MacSerial binary not found.

unable to access 'https://github.com/corpnewt/GenSMBIOS/': SSL certificate problem: Invalid certificate chain (on Mac OS 10.9.5)

Hi,

I'd have prefered to solve the problem by myself+web searches, but I guess I'm not a nerd enough.
On Mac OS 10.9.4 (Mavericks), when

git clone https://github.com/corpnewt/GenSMBIOS

we got

Cloning into 'GenSMBIOS'...
fatal: unable to access 'https://github.com/corpnewt/GenSMBIOS/': SSL certificate problem: Invalid certificate chain

So I checked a few solutions (mainly about other github programs than this specific one) :

  • manually 'Set to Default' SSL trust settings in Keychain Access for GitHub certificate (also tried "Always Trust", but still keeping the message "This certificate was signed by an unknown authority") ;
  • by terminal: trying to delete some specific certificates that could interfere (Terminal refused to delete) ;
  • installing via Github Desktop
  • ...disable antivir

Similar problems have been raised, but in Windows.

Thanks a lot, in advance, for your answer!

A

Screen Shot 2021-08-06 at 12 04 07

_get_binary using list() without proper initialization

Hey folks,

I noticed "macserial" can never be found (at least on most recent python 2, and python3) installs because of the use of of () instead of [] to build a list of one element ["macserial"]

If on line 68 you update it to binary_name = ["macserial.exe","macserial32.exe"] if os.name == "nt" else ["macserial"] you'll be able to make this work.

Also, to note, I did not "test" the windows path, only the mac path (as I only have macs)

How this generates the serial numbers ??

I tried one serial number {not from genbios} and it works {has invalid purachage date} ?So is there any formula to get other data

Type = SystemProductName
Board Serial = MLB
SmUUID = SystemUUID

from it ?
Also can i use serial number of Mac pro when product name is imac ?

Not Working

idk if i am just stupid or what but, when i try to select a number for example 1, nothing happens. i have waited for it for about half of an hour. but still nothing happened
Screenshot 2024-01-22 184305

Bug Line 114

try:
system = "linux" if sys.platform.lower().startsiwth("linux") else sys.platform

Replace with:

try:
system = "linux" if sys.platform.lower().startswith("linux") else sys.platform

SampleFull.plist

Excuse me, if it possible, can you please develop an option for SampleFull.plist please. Many thanks and sorry if this message annoying you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.