I make script that scans for Kali packages that have version newer that in Debian:
import apt_pkg def main(): apt_pkg.init() cache = apt_pkg.Cache() for pkg in cache.packages: vkali = [] vdeb = [] for ver in pkg.version_list: for fl, _ in ver.file_list: if fl.origin == 'Kali': vkali.append(ver.ver_str) elif fl.origin == 'Debian': vdeb.append(ver.ver_str) if len(vdeb) == 0: continue diff = set(vkali) - set(vdeb) if len(diff) == 0: continue ver0 = vkali[0] if all(apt_pkg.version_compare(x, ver0) < 0 for x in vdeb): print pkg.name, vkali, vdeb if __name__ == '__main__': main() -- http://defun.work/