What operating system?
In Linux, your indexes are stored in
/opt/splunk/var/lib/splunk
Your apps are stored in /opt/splunk/etc/apps
You may be better off installing a new virtual machine and doing a restore to that so that you don't compromise your existing system.