On the CFM56-7B engine powering the Boeing 737 NG family, the starter and the handcranking input are driven by the accessory gearbox which role is to link some components to the high-pressure shaft (N2 rotation speed). This gearbox is located outside of the engine core, on the fan case.
Accessory gearbox on the CFM56-7B

Picture: CFM56-7 exploded view. Source.
Corresponding schematic view:

Picture: CFM56-7B AGB, horizontal and radial shaft, TGB, IGB and engine shafts. Taken from this answer.
AGB to core shaft
There is a gear train within the AGB with its input gear used to transmit movement between the AGB and the engine core.
The AGB is connected to the N2 shaft by two bevel gear gearboxes:
The transfer gearbox (TGB) fixed just aft of the AGB, on the fan frame case. A horizontal shaft links the AGB input gear and the TGB. A radial shaft is also connected to the TGB.
The inlet gearbox (IGB) fixed close to the No 3 bearing, in the fan frame hub. One bevel gear is coaxial to the HPC shaft, the other is coaxial to the radial drive shaft.
The radial drive shaft runs within the 9 o'clock strut of the fan frame.
The described mechanism is bidirectional, the AGB is normally driven by the HPT shaft, but when using the starter or the handcranking mechanism, the pads rotate the AGB input gear using the gear train, and the input gear then drives the intermediate shafts and gearboxes.
Handcranking drive pad and starter
On the picture below,
The black handcranking drive pad is visible on top (cover removed). It is used to turn the N2 shaft during borescope inspection (the N1 shaft can be rotated by moving the fan blades manually).
The starter is the large assembly with the yellow cover protecting the large pneumatic inlet (air is used to turn the starter).

Picture: CFM56-7: Handcranking pad and starter, source Youtube.
During borescope inspection, either a pneumatic motor or a square drive socket is used:

Picture: Handcranking drive pad and starter. Source: Youtube.
Alternatively on other CFM56 engines the core can be turned directly from a pad on the TGB.
Accessory pads on the AGB
The accessories have allocated pads on the AGB:

Picture: Accessories and their allocated drive pads on the AGB. Source CFM56-7B manual.
Also: Actual photos of the gearboxes in this answer.