Sorry -- because you're booting the Recovery disk, the Terminal commands change to this:
ls -l /System/Library/Extensions > /tmp/sle.txt
ls -l /Library/Extensions > /tmp/le.txt
This will create the two files in the
/tmp folder. I have not tested this, but if it fails, just remove "/tmp" and try again. Then the files will be in the "/" (root) folder.
You can then insert a USB flash disk. It will then appear in /Volumes/<name-of-USB-disk>. If the USB is named "MacOS", for example, then it will appear here: /Volumes/MacOS.
Now copy the two text files to the USB flash disk from Terminal:
cp sle.txt /Volumes/MacOS/
cp le.txt /Volumes/MacOS/
You can then insert the USB flash disk into another working computer and upload the files. If the USB disk was formatted as FAT32 then Windows can also read the disk. But if its a MacOS format then another Mac will be needed.