AVRDUDE can be made to run using a modified conf file to accommodate some of the 8051-derived uCs, but the USBasp is a bigger challenge. Mainly because virtually all uCs use an active LOW RESET ...
This sketch includes a C2 interface. Connect up the pins as indicated below for an UNO and MEGA, respectively. When using an .exe from the releases section of this repository, follow ths instructions ...